From 31e98559a3337d9cb8b9ef05eb08d9b9a84bce07 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 31 Jan 2021 22:49:00 +0100 Subject: [PATCH] add systemd timer and service --- systemd/dococrjob.service | 10 ++++++++++ systemd/dococrjob.timer | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 systemd/dococrjob.service create mode 100644 systemd/dococrjob.timer 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