summaryrefslogtreecommitdiff
path: root/systemd/jobd.service
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-28 02:16:21 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-28 02:16:21 +0300
commit203fe6221b07784bd595cadd7fc7516020c683cb (patch)
treefc1437a3398741721e21efaaa2300ca653ed0e32 /systemd/jobd.service
parent7700d34ca6973440ba989c55b0e02305baba6645 (diff)
add systemd unit files
Diffstat (limited to 'systemd/jobd.service')
-rw-r--r--systemd/jobd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/jobd.service b/systemd/jobd.service
new file mode 100644
index 0000000..738a08b
--- /dev/null
+++ b/systemd/jobd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=jobd queue daemon
+After=mariadb.service
+
+[Service]
+User=nobody
+Group=nobody
+PermissionsStartOnly=true
+Restart=on-failure
+ProtectSystem=full
+PrivateDevices=true
+ExecStartPre=/usr/bin/install -d -o nobody /var/log/jobd
+ExecStart=/usr/bin/jobd --config /etc/jobd.conf
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file