Package: proftpd-basic Version: 1.3.2-3 Severity: normal Tags: patch User: pet...@debian.org Usertags: initd-status-support
The init script in this package supports a "status" action, which works well, but does not return a correct exit code in accordance with the LSB specification. Please consider the small attached patch to fix this.
diff -u proftpd-dfsg-1.3.2/debian/proftpd-basic.init proftpd-dfsg-1.3.2/debian/proftpd-basic.init --- proftpd-dfsg-1.3.2/debian/proftpd-basic.init +++ proftpd-dfsg-1.3.2/debian/proftpd-basic.init @@ -194,6 +194,7 @@ status) if [ "x$INETD" = "xyes" ] ; then echo "ProFTPd is started from inetd/xinetd." + exit 0 else if [ -f "$PIDFILE" ]; then pid=$(cat $PIDFILE) @@ -202,8 +203,10 @@ fi if [ `pidof proftpd|grep "$pid"|wc -l` -ne 0 ] ; then echo "ProFTPd is started in standalone mode, currently running." + exit 0 else echo "ProFTPd is started in standalone mode, currently not running." + exit 3 fi fi ;;