Lines Matching +full:local +full:- +full:pid
2 # Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany.
14 # Required-Start: $network $remote_fs
15 # Required-Stop: $network $remote_fs
16 # Default-Start: 3 5
17 # Default-Stop: 0 1 2 6
22 test -x $SSHD_BIN || exit 5
25 test -r $SSHD_SYSCONFIG || exit 6
28 SSHD_PIDFILE=/var/run/sshd.init.pid
33 # rc_check check and set local and overall rc status
34 # rc_status check and set local and overall rc status
35 # rc_status -v ditto but be verbose in local rc status
36 # rc_status -v -r ditto and clear the local rc status
37 # rc_failed set local and overall rc status to failed
38 # rc_reset clear local rc status (overall remains)
47 ssh-keygen -A
48 echo -n "Starting SSH daemon"
52 startproc -f -p $SSHD_PIDFILE $SSHD_BIN $SSHD_OPTS -o "PidFile=$SSHD_PIDFILE"
55 rc_status -v
58 echo -n "Shutting down SSH daemon"
62 killproc -p $SSHD_PIDFILE -TERM $SSHD_BIN
65 rc_status -v
67 try-restart)
84 force-reload|reload)
88 echo -n "Reload service sshd"
90 killproc -p $SSHD_PIDFILE -HUP $SSHD_BIN
92 rc_status -v
96 echo -n "Checking for service sshd "
101 # 0 - service running
102 # 1 - service dead, but /var/run/ pid file exists
103 # 2 - service dead, but /var/lock/ lock file exists
104 # 3 - service not running
106 checkproc -p $SSHD_PIDFILE $SSHD_BIN
108 rc_status -v
114 test /etc/ssh/sshd_config -nt $SSHD_PIDFILE && echo reload
117 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"