Mercurial > dropbear
diff debian/dropbear.init @ 469:8c2d2edadf2a
Update to debian 0.50-4 diff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Mar 2008 10:19:28 +0000 |
parents | f2aa5aeea619 |
children | 3c3cef8a32e6 4ca2872c7d9e |
line wrap: on
line diff
--- a/debian/dropbear.init Thu Feb 21 14:46:15 2008 +0000 +++ b/debian/dropbear.init Thu Mar 27 10:19:28 2008 +0000 @@ -1,4 +1,11 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: dropbear +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO # # Do not configure this file. Edit /etc/default/dropbear instead! # @@ -17,8 +24,8 @@ cancel() { echo "$1" >&2; exit 0; }; test ! -r /etc/default/dropbear || . /etc/default/dropbear test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable." -test ! -h /var/service/dropbear || \ - cancel '/var/service/dropbear exists, service is controlled through runit.' +test ! -x /usr/sbin/update-service || ! update-service --check dropbear || + cancel 'The dropbear service is controlled through runit, use the sv(8) program' test -z "$DROPBEAR_BANNER" || \ DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"