| 83,7 → 83,8 |
| [ "$VERBOSE" = no ] || log_daemon_msg "Starting $DESC" "$NAME" |
| start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON \ |
| -- --daemonic --port "$LSHD_PORT" $SFTP_FLAG |
| [ "$VERBOSE" = no ] || log_end_msg $? |
| ret=$? |
| [ "$VERBOSE" = no ] || log_end_msg $ret |
| ;; |
| stop|graceful-stop) |
| [ "$VERBOSE" = no ] || log_daemon_msg "Gracefully stopping $DESC" "$NAME" |
| 91,7 → 92,8 |
| # keeps running until all active connections have been closed |
| start-stop-daemon --stop --retry HUP/1 --quiet --pidfile $PIDFILE \ |
| --oknodo --exec $DAEMON |
| [ "$VERBOSE" = no ] || log_end_msg $? |
| ret=$? |
| [ "$VERBOSE" = no ] || log_end_msg $ret |
| ;; |
| restart|force-reload) |
| create_seed_and_key |
| 100,7 → 102,8 |
| --oknodo --exec $DAEMON && |
| start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \ |
| -- --daemonic --port "$LSHD_PORT" $SFTP_FLAG |
| [ "$VERBOSE" = no ] || log_end_msg $? |
| ret=$? |
| [ "$VERBOSE" = no ] || log_end_msg $ret |
| ;; |
| status) |
| status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? |