summaryrefslogtreecommitdiff
path: root/security/openssh/files/sshd.sh
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-05-13 17:11:01 +0000
committerBrian Feldman <green@FreeBSD.org>2000-05-13 17:11:01 +0000
commit361c7337a3daa61501b06723a430c42915bfd265 (patch)
treef1f2ffc977c9afdd704a881e3aab06b3736ea46b /security/openssh/files/sshd.sh
parentCope with new BSDI Netscape ports. (diff)
Update to OpenSSH 2.1.0. They _FINALLY_ have distfiles, so now the CVS is
not needed for the port. Big thanks to Issei-san for doing the majority of the work necessary for this upgrade! Submitted by: Issei Suzuki <issei@jp.FreeBSD.org>
Notes
Notes: svn path=/head/; revision=28430
Diffstat (limited to 'security/openssh/files/sshd.sh')
-rw-r--r--security/openssh/files/sshd.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/security/openssh/files/sshd.sh b/security/openssh/files/sshd.sh
new file mode 100644
index 000000000000..74798cff8d6f
--- /dev/null
+++ b/security/openssh/files/sshd.sh
@@ -0,0 +1,27 @@
+#!/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
+ ;;
+ -h)
+ echo "Usage: `basename $0` { start | stop | restart }"
+ ;;
+ *)
+ __PREFIX__/sbin/sshd
+ echo -n ' sshd'
+ ;;
+esac