Update zoneminder.service.in

Fix restart issue when using systemd
This commit is contained in:
Andrew Bauer 2014-11-06 17:42:40 -06:00
parent 23ee96c966
commit 966767e346
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ User=@WEB_USER@
Type=forking Type=forking
ExecStart=@BINDIR@/zmpkg.pl start ExecStart=@BINDIR@/zmpkg.pl start
ExecReload=@BINDIR@/zmpkg.pl restart ExecReload=@BINDIR@/zmpkg.pl restart
ExecStop=/bin/bash -c '[[ "$(@BINDIR@/pgrep zmdc.pl)" > 0 ]] && @BINDIR@/zmpkg.pl stop' ExecStop=@BINDIR@/zmpkg.pl stop
PIDFile="@ZM_RUNDIR@/zm.pid" PIDFile="@ZM_RUNDIR@/zm.pid"
[Install] [Install]