Package: lprng Version: 3.8.B-1 Severity: wishlist Tags: patch
Here is a patch to add support for the "status" action to the init.d script of lprng.
diff -Nru lprng-3.8.B/debian/changelog lprng-3.8.B/debian/changelog --- lprng-3.8.B/debian/changelog 2011-02-28 00:25:20.000000000 +0200 +++ lprng-3.8.B/debian/changelog 2011-12-08 15:10:34.000000000 +0200 @@ -1,3 +1,9 @@ +lprng (3.8.B-1.1) UNRELEASED; urgency=low + + * Added support for "status" action to init script + + -- Peter Eisentraut <[email protected]> Thu, 08 Dec 2011 20:10:07 +0200 + lprng (3.8.B-1) unstable; urgency=low * New upstream release diff -Nru lprng-3.8.B/debian/init.d lprng-3.8.B/debian/init.d --- lprng-3.8.B/debian/init.d 2011-02-27 23:40:37.000000000 +0200 +++ lprng-3.8.B/debian/init.d 2011-12-08 15:08:18.000000000 +0200 @@ -114,6 +114,9 @@ exit 1 fi ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; reload) [ "$VERBOSE" != no ] && log_daemon_msg "Reloading $DESC configuration files..." if start-stop-daemon --stop --signal 1 --quiet --pidfile \ @@ -134,7 +137,7 @@ [ "$VERBOSE" != no ] && log_end_msg 0 ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 1 ;; esac

