Debian 4.86.1 beta

Mark Sapiro mark at msapiro.net
Thu Jan 28 19:44:17 UTC 2016


On 01/27/2016 02:57 AM, Jerry Benton wrote:
> Ok, here is the beta for the Debian package. 


There is an issue with the /etc/init.d/MailScanner script in the first
4.86.1-0 beta (I haven't looked at the new one yet).

The new code to test if MailScanner is running doesn't work, resulting
in /etc/cron.hourly/MailScanner starting an additional MailScanner
instance every hour.

Here's what I did to make it work:

> --- /b/d/etc/init.d/MailScanner	2016-01-27 02:42:42.000000000 -0800
> +++ /etc/init.d/MailScanner	2016-01-28 11:11:58.280354834 -0800
> @@ -105,7 +105,7 @@
>  	#   0 if daemon has been started
>  	#   1 if daemon was already running
>  	#   2 if daemon could not be started
> -	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON ${RUNAS} --test > /dev/null || return 1
> +	start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON ${RUNAS} --test > /dev/null || return 1
>  	start-stop-daemon --start --quiet --nicelevel $run_nice --exec $DAEMON ${RUNAS} --pidfile $PIDFILE || return 2
>  
>    # Set lockfile to inform cronjobs about the running daemon


See the explanation of why --exec doesn't work here in the description
of --exec in 'man start-stop-daemon'

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list