blob: b7c5ac8d80e36c156560f2c9b63a095c3fb81b73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
case "$1" in
start)
!!PREFIX!!/sbin/sshd 2> /dev/null
echo -n ' sshd'
;;
stop)
if [ -f /var/run/sshd2_22.pid ]; then
kill -TERM `cat /var/run/sshd2_22.pid`
rm -f /var/run/sshd2_22.pid
echo -n ' sshd'
fi
;;
restart)
if [ -f /var/run/sshd2_22.pid ]; then
kill -HUP `cat /var/run/sshd2_22.pid`
echo 'sshd restarted'
fi
;;
-h)
echo "Usage: `basename $0` { start | stop | restart }"
;;
*)
!!PREFIX!!/sbin/sshd
echo -n ' sshd'
;;
esac
|