diff --git a/misc/zoneminder.service.in b/misc/zoneminder.service.in index ddda8eaa5..23ba45601 100644 --- a/misc/zoneminder.service.in +++ b/misc/zoneminder.service.in @@ -11,7 +11,7 @@ User=@WEB_USER@ Type=forking ExecStart=@BINDIR@/zmpkg.pl start 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" [Install]