Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / bootscripts / blfs / init.d / sshd
blobd83218fcdbbfd52a2ce2374c4816dd1b338696e1
1 #!/bin/sh
2 # Begin $rc_base/init.d/sshd
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting SSH Server..."
13 loadproc /usr/sbin/sshd
16 stop)
17 echo "Stopping SSH Server..."
18 killproc /usr/sbin/sshd
21 reload)
22 echo "Reloading SSH Server..."
23 reloadproc /usr/sbin/sshd
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
32 status)
33 statusproc /usr/sbin/sshd
37 echo "Usage: $0 {start|stop|reload|restart|status}"
38 exit 1
40 esac
42 # End $rc_base/init.d/sshd