Subversion Repositories lsh

Compare Revisions

Ignore whitespace Rev 45 → Rev 59

/trunk/debian/changelog
1,3 → 1,10
lsh-utils (2.0.4-dfsg-5) unstable; urgency=low
 
* lsh-server.init.d: Don't suppress start/stop messages when $VERBOSE =
"no". /etc/init.d/skeleton is not a good example in this matter.
 
-- Magnus Holmgren <holmgren@debian.org> Sat, 10 Oct 2009 23:16:33 +0200
 
lsh-utils (2.0.4-dfsg-4) unstable; urgency=high
 
* lsh-server.init.d: Fix critical exit status ($?) handling mistake
/trunk/debian/lsh-server.init.d
80,30 → 80,27
case "$1" in
start)
create_seed_and_key
[ "$VERBOSE" = no ] || log_daemon_msg "Starting $DESC" "$NAME"
log_daemon_msg "Starting $DESC" "$NAME"
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON \
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG
ret=$?
[ "$VERBOSE" = no ] || log_end_msg $ret
log_end_msg $?
;;
stop|graceful-stop)
[ "$VERBOSE" = no ] || log_daemon_msg "Gracefully stopping $DESC" "$NAME"
log_daemon_msg "Gracefully stopping $DESC" "$NAME"
# Signal 1 causes the "old" lsh to close up shop on its port, but
# keeps running until all active connections have been closed
start-stop-daemon --stop --retry HUP/1 --quiet --pidfile $PIDFILE \
--oknodo --exec $DAEMON
ret=$?
[ "$VERBOSE" = no ] || log_end_msg $ret
log_end_msg $?
;;
restart|force-reload)
create_seed_and_key
[ "$VERBOSE" = no ] || log_daemon_msg "Restarting $DESC" "$NAME"
log_daemon_msg "Restarting $DESC" "$NAME"
start-stop-daemon --stop --retry HUP/1 --quiet --pidfile $PIDFILE \
--oknodo --exec $DAEMON &&
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG
ret=$?
[ "$VERBOSE" = no ] || log_end_msg $ret
log_end_msg $?
;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?