Package: xfs Version: 1:1.0.8-2.1 Severity: wishlist Tags: patch User: pet...@debian.org Usertags: initd-status-support
Here is a patch to support the "status" action in the init.d script.
diff -u xfs-1.0.8/debian/xfs.init xfs-1.0.8/debian/xfs.init --- xfs-1.0.8/debian/xfs.init +++ xfs-1.0.8/debian/xfs.init @@ -44,6 +44,8 @@ test -x $DAEMON || exit 0 +. /lib/lsb/init-functions + do_restorecon () { # Restore file security context (SELinux). if which restorecon >/dev/null 2>&1; then @@ -176,8 +178,12 @@ echo "." ;; + status) + status_of_proc -p $PIDFILE $DAEMON xfs + ;; + *) - echo "Usage: /etc/init.d/xfs {start|stop|restart|reload|force-reload}" + echo "Usage: /etc/init.d/xfs {start|stop|restart|reload|force-reload|status}" exit 1 ;; esac diff -u xfs-1.0.8/debian/control xfs-1.0.8/debian/control --- xfs-1.0.8/debian/control +++ xfs-1.0.8/debian/control @@ -10,7 +10,7 @@ Package: xfs Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, adduser +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base (>= 3.2-13) Suggests: xfonts-100dpi | xfonts-75dpi, xfonts-base, xfonts-scalable Description: X font server xfs is a daemon that listens on a network port and serves X fonts to X