From e42a3c1e5539709d2161cb33720e58baddc3f810 Mon Sep 17 00:00:00 2001 From: osaajani Date: Thu, 9 Jan 2020 14:29:37 +0100 Subject: [PATCH] working service --- bin/systemd/raspisms.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100755 => 100644 bin/systemd/raspisms.service diff --git a/bin/systemd/raspisms.service b/bin/systemd/raspisms.service old mode 100755 new mode 100644 index 18a40b4..b4238e2 --- a/bin/systemd/raspisms.service +++ b/bin/systemd/raspisms.service @@ -1,13 +1,16 @@ [Unit] Description=RaspiSMS Daemons Documentation=https://raspisms.raspberry-pi.fr -After=network-online.target +After=network-online.target apache2.service Wants=network-online.target [Service] Type=forking PIDFile=/var/run/raspisms/RaspiSMS Daemon Launcher.pid ExecStart=/opt/raspisms/bin/start.sh -ExecStop=/opt/raspisms/bin/start.sh +ExecStop=/opt/raspisms/bin/stop.sh WorkingDirectory=/opt/raspisms Restart=on-failure + +[Install] +WantedBy=multi-user.target