From a6d84190eb3f0cd85a991a0c608aa1929658c68f Mon Sep 17 00:00:00 2001 From: Luca Corbatto Date: Fri, 15 Mar 2019 10:51:46 +0100 Subject: Add systemd setup that supports workers (#4662) This setup is a way to manage workers with systemd. It does however not require workers. You can use this setup without workers. You just have to make sure that the homeserver is forking and writes its PID file to the location the service is looking in. The currently distributed setup in the debian package does not work in conjunction with workers. * Adds changelog * Lets systemd handle the forking Sets all services to `type=simple` and disables daemonizing on the synapse side. * Formats readme to 80 columns per line * Allows for full restart of all workers * Changes README to reflect the new setup * Adds dot to end of changelog file * Removes surplus word Co-Authored-By: targodan * Adds missing word Co-Authored-By: targodan * Fixes linebreak Co-Authored-By: targodan * Fixes unit type --- contrib/systemd-with-workers/system/matrix.target | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 contrib/systemd-with-workers/system/matrix.target (limited to 'contrib/systemd-with-workers/system/matrix.target') diff --git a/contrib/systemd-with-workers/system/matrix.target b/contrib/systemd-with-workers/system/matrix.target new file mode 100644 index 0000000000..aff97d03ef --- /dev/null +++ b/contrib/systemd-with-workers/system/matrix.target @@ -0,0 +1,7 @@ +[Unit] +Description=Contains matrix services like synapse, bridges and bots +After=network.target +AllowIsolate=no + +[Install] +WantedBy=multi-user.target -- cgit 1.4.1