mirror of
https://github.com/tomru/docscan.git
synced 2026-03-03 06:27:21 +01:00
add systemd timer and service
This commit is contained in:
10
systemd/dococrjob.service
Normal file
10
systemd/dococrjob.service
Normal 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
9
systemd/dococrjob.timer
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=docscan orc job timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=05:00
|
||||
Unit=dococrjob.service
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
||||
Reference in New Issue
Block a user