add systemd timer and service

This commit is contained in:
Thomas Ruoff
2021-01-31 22:49:00 +01:00
parent 4f8d09b656
commit 31e98559a3
2 changed files with 19 additions and 0 deletions

10
systemd/dococrjob.service Normal file
View File

@@ -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

9
systemd/dococrjob.timer Normal file
View File

@@ -0,0 +1,9 @@
[Unit]
Description=docscan orc job timer
[Timer]
OnCalendar=05:00
Unit=dococrjob.service
[Install]
WantedBy=network.target