diff options
author | Roger Leigh <rleigh@debian.org> | 2006-11-03 00:52:15 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2006-11-03 00:52:15 +0000 |
commit | 93caf61903fd327962d0f36e127aab7ff6a3c63b (patch) | |
tree | 318a49b143adf687ffa178a27cb499646ddd2213 | |
parent | a927845bd9c6cce8e9c16b7daa65701b205a91e5 (diff) | |
download | schroot-93caf61903fd327962d0f36e127aab7ff6a3c63b.tar.gz |
* debian/schroot.init: Add LSB init info and use LSB init
functions.
* debian/changelog: Update.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | debian/schroot.init | 26 |
3 files changed, 30 insertions, 6 deletions
@@ -1,3 +1,10 @@ +2006-11-03 Roger Leigh <rleigh@debian.org> + + * debian/schroot.init: Add LSB init info and use LSB init + functions. + + * debian/changelog: Update. + 2006-10-18 Roger Leigh <rleigh@debian.org> * schroot/schroot.1.in: Fix a number of minor typos. Thanks to diff --git a/debian/changelog b/debian/changelog index 1c555178..6172d00b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ schroot (1.1.1-1) UNRELEASED; urgency=low * New upstream development release. + * debian/schroot.init: Add LSB init info and use LSB init functions. - -- Roger Leigh <rleigh@debian.org> Mon, 2 Oct 2006 22:57:11 +0100 + -- Roger Leigh <rleigh@debian.org> Fri, 3 Nov 2006 00:47:46 +0000 schroot (1.1.0-1) unstable; urgency=low diff --git a/debian/schroot.init b/debian/schroot.init index 398852f7..13ebc5c2 100755 --- a/debian/schroot.init +++ b/debian/schroot.init @@ -1,11 +1,25 @@ #! /bin/sh # -# Recover schroot sessions. +### BEGIN INIT INFO +# Provides: schroot +# Required-Start: $local_fs $network $remote_fs +# Required-Stop: +# Should-Start: lvm +# Should-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Recover schroot sessions. +# Description: Activate any persistent sessions after a reboot. +# Setup scripts will be run to mount filesystems and +# bring the chroot back to a working state. +### END INIT INFO SCHROOT=/usr/bin/schroot PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=schroot +. /lib/lsb/init-functions + test -x $SCHROOT || exit 0 # Include #PACKAGE# defaults if available @@ -17,13 +31,13 @@ set -e recover_sessions() { - echo -n "Recovering schroot sessions... " + log_daemon_msg "Recovering schroot sessions" for chroot in `$SCHROOT --all-sessions --list --quiet` do $SCHROOT --chroot=$chroot --recover-session || true - echo -n "$chroot, " + log_progress_msg "$chroot" done - echo "done." + log_end_msg 0 } case "$1" in @@ -32,9 +46,11 @@ case "$1" in ;; stop) ;; + status) + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac |