summaryrefslogtreecommitdiff
path: root/contrib/redhat/sshd.init-5.x
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/redhat/sshd.init-5.x')
-rwxr-xr-xcontrib/redhat/sshd.init-5.x62
1 files changed, 0 insertions, 62 deletions
diff --git a/contrib/redhat/sshd.init-5.x b/contrib/redhat/sshd.init-5.x
deleted file mode 100755
index 51ded9338..000000000
--- a/contrib/redhat/sshd.init-5.x
+++ /dev/null
@@ -1,62 +0,0 @@
1#!/bin/bash
2
3# Init file for OpenSSH server daemon
4#
5# chkconfig: 2345 55 25
6# description: OpenSSH server daemon
7#
8# processname: sshd
9# config: /etc/ssh/ssh_host_key
10# config: /etc/ssh/ssh_host_key.pub
11# config: /etc/ssh/ssh_random_seed
12# config: /etc/ssh/sshd_config
13# pidfile: /var/run/sshd.pid
14
15# source function library
16. /etc/rc.d/init.d/functions
17
18RETVAL=0
19
20case "$1" in
21 start)
22 echo -n "Starting sshd: "
23 if [ ! -f /var/run/sshd.pid ] ; then
24 case "`type -type success`" in
25 function)
26 /usr/sbin/sshd && success "sshd startup" || failure "sshd startup"
27 RETVAL=$?
28 ;;
29 *)
30 /usr/sbin/sshd && echo -n "sshd "
31 RETVAL=$?
32 ;;
33 esac
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
35 fi
36 echo
37 ;;
38 stop)
39 echo -n "Shutting down sshd: "
40 if [ -f /var/run/sshd.pid ] ; then
41 killproc sshd
42 RETVAL=$?
43 fi
44 echo
45 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
46 ;;
47 restart)
48 $0 stop
49 $0 start
50 RETVAL=$?
51 ;;
52 status)
53 status sshd
54 RETVAL=$?
55 ;;
56 *)
57 echo "Usage: sshd {start|stop|restart|status}"
58 exit 1
59 ;;
60esac
61
62exit $RETVAL