diff --git a/systemd/dococrjob.service b/systemd/dococrjob.service new file mode 100644 index 0000000..fb7667f --- /dev/null +++ b/systemd/dococrjob.service @@ -0,0 +1,10 @@ +[Unit] +Description=docscan orc job +Requires=mnt-docscans.mount mnt-documents.mount + +[Service] +Type=oneshot +Nice=19 +IOSchedulingClass=2 +IOSchedulingPriority=7 +ExecStart=/home/ido/docscan/run.sh diff --git a/systemd/dococrjob.timer b/systemd/dococrjob.timer new file mode 100644 index 0000000..93d1969 --- /dev/null +++ b/systemd/dococrjob.timer @@ -0,0 +1,9 @@ +[Unit] +Description=docscan orc job timer + +[Timer] +OnCalendar=05:00 +Unit=dococrjob.service + +[Install] +WantedBy=network.target