--- MailScanner-5.0.3-7/usr/sbin/ms-check.orig 2016-11-13 19:29:34.000000000 +0100 +++ MailScanner-5.0.3-7/usr/sbin/ms-check.orig 2016-11-13 19:29:47.000000000 +0100 @@ -30,7 +30,6 @@ NAME=MailScanner DAEMON=/usr/sbin/MailScanner QUICKPEEK=/usr/sbin/ms-peek -run_mailscanner=0 ramdisk_sync=0 ms_conf=/etc/MailScanner/MailScanner.conf ms_core=/usr/share/MailScanner @@ -60,15 +59,8 @@ # Exit if the MailScanner executable is not installed [ -x $DAEMON ] || exit 0 -# if /var/lock/subsys is missing -[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys - -# Don't start if MailScanner is not configured -if [ $run_mailscanner = 0 ]; then - exit 0 -fi - # check if a PID file exists +RETVAL=0 if [ -f $PIDFILE ] ; then # get the PID PID=$(head -n 1 $PIDFILE) @@ -77,9 +69,6 @@ # get the return RETVAL="$?" - -else - RETVAL=9 fi # if 0 it is already running @@ -109,11 +98,6 @@ # start mailscanner $DAEMON $ms_conf - # set run file - if [ ! -f /var/lock/subsys/MailScanner ] ; then - touch /var/lock/subsys/MailScanner - fi - exit 0 fi