I'm having some problems changing run state using the zmpkg.pl script from the command line. I am running ZoneMinder 1.21.3, installed from source (not ebuild), on a Gentoo Linux system. Changing run states from the web interface works fine, just not from the command line.
My cameras are set up with 2 run states: Day and Night. During the day, they are all set to monitor mode, and at night they are all set to modect. I use cron to change modes:
Code: Select all
0 20 * * * /usr/local/bin/zmpkg.pl Night
0 7 * * * /usr/local/bin/zmpkg.pl Day
Code: Select all
Command: state
Updating DB: Day
Executing: /usr/local/bin/zmdc.pl check
Executing: /usr/local/bin/zmdc.pl shutdown
Removing shared memory
Executing: /usr/local/bin/zmdc.pl check
Removing shared memory
Executing: /usr/local/bin/zmfix
Executing: /usr/local/bin/zmdc.pl status
Executing: /usr/local/bin/zmdc.pl start zmc -d 0
Executing: /usr/local/bin/zmdc.pl start zmc -d 1
Executing: /usr/local/bin/zmdc.pl start zmc -d 2
Executing: /usr/local/bin/zmdc.pl start zmc -d 3
Executing: /usr/local/bin/zmdc.pl start zmfilter.pl
Executing: /usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /usr/local/bin/zmdc.pl start zmwatch.pl
Executing: /usr/local/bin/zmdc.pl start zmupdate.pl -c
Code: Select all
Command: state
Updating DB: Day
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
I haven't been able to make heads or tails of this problem, and have searched through the forums for a similar problem. I would appreciate any help (or a pointer to the relevent thread if this has been solved before).
-- John