Package: debtorrent Version: 0.1.9 Severity: normal Tags: patch
I'd like to be able to do: invoke-rc.d debtorrent-client status and get some kind of summary, at least whether it's running (ideally it'd be nice to get something about how much memory it's using, if it's currently fetching / serving files etc.) The patch below just adds a completely minimal status verb to say whether the process is running, not running, or apparently crashed Cheers & God bless Sam "SammyTheSnake" Penny --- debtorrent-client.orig 2008-09-11 14:07:44.000000000 +0100 +++ debtorrent-client 2008-09-11 14:08:47.000000000 +0100 @@ -123,8 +123,17 @@ fi ;; + status) + if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) > /dev/null 2>&1; then + echo "Running" + elif [ -s $PIDFILE ] ; then + echo "Died!"; + else + echo "Not running" + fi + ;; *) - echo "Usage: /etc/init.d/debtorrent-client {start|stop|reload|force-reload|restart}" + echo "Usage: /etc/init.d/debtorrent-client {start|stop|status|reload|force-reload|restart}" exit 1 esac -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (50, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages debtorrent depends on: ii adduser 3.110 add and remove users and groups ii python 2.5.2-2 An interactive high-level object-o ii python-apt 0.7.7.1 Python interface to libapt-pkg ii python-debian 0.1.10 Python modules to work with Debian ii python-support 0.8.4 automated rebuilding support for P Versions of packages debtorrent recommends: ii apt-transport-debtorrent 0.2.1 an APT transport for communicating ii python-crypto 2.0.1+dfsg1-2.3 cryptographic algorithms and proto Versions of packages debtorrent suggests: pn python-psyco <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]