diff --git a/distros/debian8/zoneminder.service b/distros/debian8/zoneminder.service index 78f950aca..d82270024 100644 --- a/distros/debian8/zoneminder.service +++ b/distros/debian8/zoneminder.service @@ -12,7 +12,7 @@ User=www-data Type=forking ExecStart=/usr/bin/zmpkg.pl start ExecReload=/usr/bin/zmpkg.pl restart -ExecStop=/bin/bash -c '[[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.pl stop' +ExecStop=/usr/bin/zmpkg.pl stop PIDFile=/var/run/zm/zm.pid [Install]