From 48aa2dbb95cf4199caa8707dc7b6cec12c2d2a95 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 20 Apr 2017 23:47:19 +0200 Subject: document systemd service setup --- README.rst | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 1008361..0008b60 100644 --- a/README.rst +++ b/README.rst @@ -46,7 +46,28 @@ Dependencies ===== Setup ===== -This section is incomplete. +FIXME: This section is incomplete. + + +System service +============== +When using systemd, you can let it run multiple worker instances when +the system boots up: + +#. Copy files ``data/systemd/phinde*.service`` into ``/etc/systemd/system/`` +#. Adjust user and group names, and the work directories +#. Enable three worker processes:: + + $ systemctl daemon-reload + $ systemctl enable phinde@1 + $ systemctl enable phinde@2 + $ systemctl enable phinde@3 + $ systemctl enable phinde + $ systemctl start phinde +#. Now three workers are running. Restarting the ``phinde`` service also + restarts the workers. + + Cron job ======== -- cgit v1.2.3