-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Attached find two patch files, one bug/lintian and the other incorporates features.
sha256 e5369efb01c70e788bae53b3b5797c03b84bcd3b1e895b27d95f354f07851e84 0001-This-fixes-the-bug-and-corrects-init.d-script-does-not.txt a38e9712c0f5dcd44cc7f656b2223d52a6f332eb228564bf56ec84e9376e5038 0002-Simplify-with-status_of_proc.txt size 861 0001-This-fixes-the-bug-and-corrects-init.d-script-does-not.txt 927 0002-Simplify-with-status_of_proc.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJS9DMZAAoJEOPRqa2O3KuKRUIQALpWXie3+V47lpv7cRvBLkXV 71kn4homZu1Ta8E4wyLVNPaMHd8tvXycHx2t9UZ/ch9bC1FtLQcKjRPwOLPEmu9c dPP6ZtJfnDr8z4PCb/OCuP0/kuj/yZpif16KYW30weDKTkdyVOOWj14lukfFeqfP 70t0kleUP2t5cJDN26lWJMYkVMnJLieiz0gNBVvSVKMXhdhP0f3ZyVv3AlO1KfPQ UiiX+xkNgzTxHrbv9RoqYssJBpLQr4IlKQQis1/cDKF3ODil/zsJGBTocFZN01PX IneYfPX+SiLl6yUtKBTX7jSfiEgmBZKH0kETTFnXnG/IdMpeTsF0prmsJASA++FA R2DtflqobhoGGDLwRVfiA4A8zvTcCNthLWhjsjhLteK3EtMJwSCEcMNSWcDDXFys Cw2EbzdSOh86U8TxiyrWW7azJR3/8UhRhBk8XH2sdXzPL3H5nHNp+9CR0IssnuZP mCVs40sadTc7orOPFugW3N2nCS8Ly1g9tnrrh8OIKxyYbqYHg8nURUTLwRBYY+c2 iCjs0eSm8e0mPl6uEyLmK8MT+g1ENsDwRmv1fVOiSi6BwH0eulzJW5FJOFxxqu5H SCyRhBQyXWx62yyt86MvKsPukeXKMLwhrFllsCYBg/5ZdEyL2OUZNnIioPbjGNdP xu8qELS+EIbxvItxOWvp =uMMO -----END PGP SIGNATURE-----
>From 527072f15bce400836b039d0ddb23a127a5086bf Mon Sep 17 00:00:00 2001 From: Mike Mestnik <cheako+arcadia=g...@mikemestnik.net> Date: Thu, 6 Feb 2014 18:20:16 -0600 Subject: [PATCH 1/2] This fixes the bug and corrects init.d-script-does-not-source-init-functions. --- debian/init.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/init.d b/debian/init.d index c026287..89bad8d 100644 --- a/debian/init.d +++ b/debian/init.d @@ -29,6 +29,7 @@ if [ "$ENABLED" != "1" ] ; then fi set -e +. /lib/lsb/init-functions case "$1" in start) @@ -104,12 +105,11 @@ case "$1" in exit 3 else if [ -f "$RUNDIR/atheme.pid" ]; then - ( set +e + set +e start-stop-daemon --status --quiet --pidfile $RUNDIR/atheme.pid ext=$? echo "." exit $ext - ) fi echo "pid file missing." exit 3 -- 1.7.9.5
>From 069db216dad5abea83cc84e637d1166b955f07f9 Mon Sep 17 00:00:00 2001 From: Mike Mestnik <cheako+arcadia=g...@mikemestnik.net> Date: Thu, 6 Feb 2014 18:22:16 -0600 Subject: [PATCH 2/2] Simplify with status_of_proc. --- debian/init.d | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/debian/init.d b/debian/init.d index 89bad8d..77e9452 100644 --- a/debian/init.d +++ b/debian/init.d @@ -99,23 +99,7 @@ case "$1" in echo "." ;; status) - echo -n "Status $DESC: $NAME " - if [ ! -d "$RUNDIR" ]; then - echo "run folder missing!" - exit 3 - else - if [ -f "$RUNDIR/atheme.pid" ]; then - set +e - start-stop-daemon --status --quiet --pidfile $RUNDIR/atheme.pid - ext=$? - echo "." - exit $ext - fi - echo "pid file missing." - exit 3 - fi - echo unknown. - exit 4 + status_of_proc -p $RUNDIR/atheme.pid $DAEMON $NAME ;; *) N=/etc/init.d/$NAME -- 1.7.9.5