since quite some time, my zoneminder (1.30.4) installation on Debian Stretch (9.3) does not start anymore.
Code: Select all
root@home:~# systemctl start zoneminder.service
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
root@home:~# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-02-25 12:46:22 CET; 4s ago
Docs: http://zoneminder.readthedocs.org/en/latest/
Process: 16173 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=95)
Feb 25 12:46:20 home systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
Feb 25 12:46:22 home zmpkg[16173]: INF [Sanity checking States table...]
Feb 25 12:46:22 home zmpkg[16173]: INF [Command: start]
Feb 25 12:46:22 home zmpkg.pl[16173]: Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/zmpkg.pl line 386.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Control process exited, code=exited status=95
Feb 25 12:46:22 home systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Unit entered failed state.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Failed with result 'exit-code'.
root@home:~#
Code: Select all
Feb 25 12:46:20 home systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
-- Subject: Unit zoneminder.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit zoneminder.service has begun starting up.
Feb 25 12:46:22 home zmpkg[16173]: INF [Sanity checking States table...]
Feb 25 12:46:22 home zmpkg[16173]: INF [Command: start]
Feb 25 12:46:22 home zmpkg.pl[16173]: Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/zmpkg.pl line 386.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Control process exited, code=exited status=95
Feb 25 12:46:22 home systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: Unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit zoneminder.service has failed.
--
-- The result is failed.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Unit entered failed state.
Feb 25 12:46:22 home systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Code: Select all
my $output = qx(ps -o comm="" -p 1);
Code: Select all
sub systemdRunning
{
my $result = 0;
my $output = qx(ps -o comm="" -p 1);
chomp( $output );
if ($output =~ /systemd/) {
$result = 1;
}
return $result;
}