working service
This commit is contained in:
parent
89d786a730
commit
e42a3c1e55
|
@ -1,13 +1,16 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=RaspiSMS Daemons
|
Description=RaspiSMS Daemons
|
||||||
Documentation=https://raspisms.raspberry-pi.fr
|
Documentation=https://raspisms.raspberry-pi.fr
|
||||||
After=network-online.target
|
After=network-online.target apache2.service
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/raspisms/RaspiSMS Daemon Launcher.pid
|
PIDFile=/var/run/raspisms/RaspiSMS Daemon Launcher.pid
|
||||||
ExecStart=/opt/raspisms/bin/start.sh
|
ExecStart=/opt/raspisms/bin/start.sh
|
||||||
ExecStop=/opt/raspisms/bin/start.sh
|
ExecStop=/opt/raspisms/bin/stop.sh
|
||||||
WorkingDirectory=/opt/raspisms
|
WorkingDirectory=/opt/raspisms
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue