From 02a33856385a1658fd525c599f1145e39a30dd3a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 20 May 2024 13:01:32 +0200 Subject: [PATCH] Tweaked Platypush systemd service. - A more informative Description - `s/WantedBy=default.target/WantedBy=multi-user.target/` - `redis.service` is a strong requirement --- examples/systemd/platypush.service | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/examples/systemd/platypush.service b/examples/systemd/platypush.service index e8c962fa4d..a09659c90c 100644 --- a/examples/systemd/platypush.service +++ b/examples/systemd/platypush.service @@ -1,22 +1,12 @@ -# platypush systemd service example. -# Edit and copy this file to your systemd folder. It's usually -# /usr/lib/systemd/user for global installation or -# ~/.config/systemd/user for user installation. You can -# then control and monitor the service through -# systemd [--user] [start|stop|restart|status] platypush.service - [Unit] -Description=Platypush daemon +Description=Platypush - A general-purpose platform for automation After=network.target redis.service +Requires=redis.service [Service] -# platypush installation path ExecStart=/usr/bin/platypush Restart=always -# How long should be waited before restarting the service -# in case of failure. RestartSec=10 [Install] -WantedBy=default.target - +WantedBy=multi-user.target