Code: Select all
apt-get update
apt-get upgrade
apt-get dist-upgrade
This is how i find the service when it is not working
Code: Select all
root@zm:~# service zoneminder status
● 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 Tue 2017-04-25 02:01:43 CEST; 8h ago
Process: 32553 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=1/FAILURE)
Process: 13354 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 13371 (code=exited, status=255)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
root@zm:~#
Last State Change: 04-25-2017 02:06:30
When i look at syslog i found out this
Code: Select all
Apr 25 02:01:19 zm zmdc[13371]: FAT [Can't execute log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( ?, ?, ?, ?, ?, ?, ?, NULL )': Lost connection to MySQL server during query]
Apr 25 02:01:21 zm systemd[1]: zoneminder.service: Main process exited, code=exited, status=255/n/a
Apr 25 02:01:24 zm systemd[1]: zoneminder.service: Control process exited, code=exited status=1
Apr 25 02:01:28 zm zmc_m15[13453]: ERR [Select error: Interrupted system call]
Apr 25 02:01:28 zm zmc_m15[13453]: ERR [Unable to read header]
Apr 25 02:01:29 zm zmc_m15[13453]: ERR [Unable to get response, disconnecting]
Apr 25 02:01:43 zm systemd[1]: zoneminder.service: Unit entered failed state.
Apr 25 02:01:43 zm systemd[1]: zoneminder.service: Failed with result 'exit-code'.