summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-12 15:04:55 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-12 19:49:41 +0100
commit4dd645503a3766187459070e399c3e000b4c454f (patch)
tree746ad8a111220cd576ad98a11404c2e73473db68
parent5efb939d05a432c0d2b4c1d62710747f998048cf (diff)
downloadick2-4dd645503a3766187459070e399c3e000b4c454f.tar.gz
Add: worker-manager service
-rw-r--r--debian/ick2.install1
-rw-r--r--ick2-worker-manager.service28
2 files changed, 29 insertions, 0 deletions
diff --git a/debian/ick2.install b/debian/ick2.install
index 7a442c6..32f5325 100644
--- a/debian/ick2.install
+++ b/debian/ick2.install
@@ -1 +1,2 @@
ick2.service lib/systemd/system
+ick2-worker-manager.service lib/systemd/system
diff --git a/ick2-worker-manager.service b/ick2-worker-manager.service
new file mode 100644
index 0000000..9c2ad36
--- /dev/null
+++ b/ick2-worker-manager.service
@@ -0,0 +1,28 @@
+# Copyright 2017 Lars Wirzenius
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+[Unit]
+Description=ick2 worker manager
+After=network.target
+
+[Service]
+Type=simple
+User=_ickwm
+Group=_ickwm
+WorkingDirectory=/var/lib/ick/wm
+ExecStart=/usr/bin/worker_manager --config /etc/ick/worker_manager.yaml
+KillSignal=QUIT
+
+[Install]
+WantedBy=multi-user.target