From 203fe6221b07784bd595cadd7fc7516020c683cb Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 28 Feb 2021 02:16:21 +0300 Subject: add systemd unit files --- systemd/jobd-master.service | 16 ++++++++++++++++ systemd/jobd.service | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 systemd/jobd-master.service create mode 100644 systemd/jobd.service diff --git a/systemd/jobd-master.service b/systemd/jobd-master.service new file mode 100644 index 0000000..45b7fca --- /dev/null +++ b/systemd/jobd-master.service @@ -0,0 +1,16 @@ +[Unit] +Description=jobd master 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-master --config /etc/jobd-master.conf + +[Install] +WantedBy=multi-user.target \ No newline at end of file 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 -- cgit v1.2.3