aboutsummaryrefslogtreecommitdiff
path: root/security/hpn-ssh/files/sshd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'security/hpn-ssh/files/sshd.sh')
-rw-r--r--security/hpn-ssh/files/sshd.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/security/hpn-ssh/files/sshd.sh b/security/hpn-ssh/files/sshd.sh
new file mode 100644
index 000000000000..ba52de02fe7b
--- /dev/null
+++ b/security/hpn-ssh/files/sshd.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+case "$1" in
+start)
+ __PREFIX__/sbin/sshd
+ echo -n ' sshd'
+ ;;
+stop)
+ if [ -f /var/run/sshd.pid ]; then
+ kill -TERM `cat /var/run/sshd.pid`
+ rm -f /var/run/sshd.pid
+ echo -n ' sshd'
+ fi
+ ;;
+restart)
+ if [ -f /var/run/sshd.pid ]; then
+ kill -HUP `cat /var/run/sshd.pid`
+ echo 'sshd restarted'
+ fi
+ ;;
+*)
+ echo "Usage: ${0##*/}: { start | stop | restart }" 2>&1
+ exit 65
+ ;;
+esac