r407 - in /debtorrent/trunk/debian: changelog debtorrent-client.init debtorrent-tracker.init
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Sun Sep 28 18:49:51 UTC 2008
Author: camrdale-guest
Date: Sun Sep 28 18:49:51 2008
New Revision: 407
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=407
Log:
Add a status verb to init.d scripts (Closes: #498606)
Modified:
debtorrent/trunk/debian/changelog
debtorrent/trunk/debian/debtorrent-client.init
debtorrent/trunk/debian/debtorrent-tracker.init
Modified: debtorrent/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/debian/changelog?rev=407&op=diff
==============================================================================
--- debtorrent/trunk/debian/changelog (original)
+++ debtorrent/trunk/debian/changelog Sun Sep 28 18:49:51 2008
@@ -1,8 +1,9 @@
debtorrent (0.1.9.1) unstable; urgency=low
* Prevent symlink attack when upgrading from pre 0.1.6 (Closes: #500180)
+ * Add a status verb to init.d scripts (Closes: #498606)
- -- Cameron Dale <camrdale at gmail.com> Sat, 27 Sep 2008 11:19:50 -0700
+ -- Cameron Dale <camrdale at gmail.com> Sun, 28 Sep 2008 11:49:34 -0700
debtorrent (0.1.9) unstable; urgency=low
Modified: debtorrent/trunk/debian/debtorrent-client.init
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/debian/debtorrent-client.init?rev=407&op=diff
==============================================================================
--- debtorrent/trunk/debian/debtorrent-client.init (original)
+++ debtorrent/trunk/debian/debtorrent-client.init Sun Sep 28 18:49:51 2008
@@ -122,9 +122,13 @@
[ "$VERBOSE" != no ] && log_warning_msg "$NAME daemon not enabled in $DEFAULTSFILE, not starting..."
fi
;;
+
+ status)
+ status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+ ;;
*)
- 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
Modified: debtorrent/trunk/debian/debtorrent-tracker.init
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/debian/debtorrent-tracker.init?rev=407&op=diff
==============================================================================
--- debtorrent/trunk/debian/debtorrent-tracker.init (original)
+++ debtorrent/trunk/debian/debtorrent-tracker.init Sun Sep 28 18:49:51 2008
@@ -120,8 +120,12 @@
fi
;;
+ status)
+ status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+ ;;
+
*)
- echo "Usage: /etc/init.d/debtorrent-tracker {start|stop|reload|force-reload|restart}"
+ echo "Usage: /etc/init.d/debtorrent-tracker {start|stop|status|reload|force-reload|restart}"
exit 1
esac
More information about the Debtorrent-commits
mailing list