Package: preload
Version: 0.6.4-1
Severity: wishlist
Tags: patch
Here is a patch to add support for the "status" action to the init.d script
for preload.
diff -u preload-0.6.4/debian/init.d preload-0.6.4/debian/init.d
--- preload-0.6.4/debian/init.d
+++ preload-0.6.4/debian/init.d
@@ -28,6 +28,8 @@
test -x $DAEMON || exit 0
+. /lib/lsb/init-functions
+
set -e
case "$1" in
@@ -57,9 +59,12 @@
start-stop-daemon --start --quiet -u 0 $PRELOAD_IOSCHED --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
+ status)
+ status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+ ;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
exit 1
;;
esac
diff -u preload-0.6.4/debian/changelog preload-0.6.4/debian/changelog
--- preload-0.6.4/debian/changelog
+++ preload-0.6.4/debian/changelog
@@ -1,3 +1,9 @@
+preload (0.6.4-1.1) UNRELEASED; urgency=low
+
+ * Add init.d status support.
+
+ -- Peter Eisentraut <[email protected]> Wed, 12 Oct 2011 21:22:30 +0300
+
preload (0.6.4-1) unstable; urgency=low
* New upstream release (Closes: #495549)
diff -u preload-0.6.4/debian/control preload-0.6.4/debian/control
--- preload-0.6.4/debian/control
+++ preload-0.6.4/debian/control
@@ -8,7 +8,7 @@
Package: preload
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base
Description: adaptive readahead daemon
preload monitors applications that users run, and by analyzing this
data, predicts what applications users might run, and fetches those