systemd: Do not restart when the application exits with 1
This is the case of a wrong config or failure to create a tunnel
This commit is contained in:
parent
29567ed125
commit
4afb44a25e
|
@ -6,3 +6,4 @@ Type=simple
|
|||
Restart=always
|
||||
ExecStart=/usr/bin/ggsn -c /etc/ggsn.conf -f
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=1
|
||||
|
|
Reference in New Issue