zoneminder/scripts
Eliot Kent Woodrich c4ec2d7fab Suppress debug messages on ZM service start/restart
The tests in the script General.pm that determine the format for superuser calls on the target environment may leak debug messages to STDOUT. This can be replicated on a Docker installation of Zoneminder lacking sudo. Starting the Zoneminder process  will display an intimidating series of error messages that can safely be ignored by the user:

e.g.
'''
root@2bfdd23cc27a:~# service zoneminder start

Starting ZoneMinder: Can't exec "sudo": No such file or directory at /usr/share/perl5/ZoneMinder/General.pm line 1                                                   10.
Use of uninitialized value $output in scalar chomp at /usr/share/perl5/ZoneMinder/General.pm line 119.
Use of uninitialized value $output in concatenation (.) or string at /usr/share/perl5/ZoneMinder/General.pm line 1                                                   20.
success
'''

This patch redirects STDERR from the qx(...) calls to the debug message., And if the output of qx(...) is undefined, replaces it with any error in $! resulting from the qx(...) call.
2017-04-05 17:26:19 -07:00
..
ZoneMinder Suppress debug messages on ZM service start/restart 2017-04-05 17:26:19 -07:00
CMakeLists.txt zmtelemetry - the typo of my typo is my friend 2016-02-06 14:50:02 -06:00
zm.in fix sftp xfers in zmfilter (#1677) 2016-11-07 16:08:43 -05:00
zmaudit.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmcamtool.pl.in When use warnings is on and there is a null value in the monitor data it causes warnings. So add skip if __git_main is not defined. 2017-01-02 12:49:37 -05:00
zmcontrol.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmdbbackup.in remake this branch off master instead of off mysql2PDO. 2013-11-01 09:47:28 -04:00
zmdbrestore.in Migrate svn to git 2013-03-17 00:45:21 +01:00
zmdc.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmeventdump.in remake this branch off master instead of off mysql2PDO. 2013-11-01 09:47:28 -04:00
zmfilter.pl.in fix typo for correct checking if a command has excuted for an event, prevents execution on every filter run 2017-02-15 08:10:50 -05:00
zmlogrotate.conf.in Migrate svn to git 2013-03-17 00:45:21 +01:00
zmpkg.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmsystemctl.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmtelemetry.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmtrack.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmtrigger.pl.in call loadMonitors at the beginning. Otherwise we may not know about a monitor while handling a message from it. 2017-01-12 13:03:53 -05:00
zmupdate.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmvideo.pl.in update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
zmwatch.pl.in zmMemVerify now checks valid, so don't need to do it again. 2017-01-10 15:32:38 -05:00
zmx10.pl.in zmMemVerify attaches, so we need to zmMemInvalidate even if the shared data is no good 2017-01-10 15:08:23 -05:00