diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-27 00:46:17 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-27 00:46:17 +0000 |
commit | 26f33893a60f712b3a6fb572cde6538bfe5ce394 (patch) | |
tree | cfa4e0c93b3f047bf7d6592f04cf83be74d6198b /contrib/redhat/sshd.init | |
parent | e39867df6dae55096b52d4d0b60415d216e168da (diff) |
- (bal) Add /etc/sysconfig/sshd support to redhat's sshd.init. Patch by
Pekka Savola <pekkas@netcore.fi>
Diffstat (limited to 'contrib/redhat/sshd.init')
-rwxr-xr-x | contrib/redhat/sshd.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init index c9c1c7bfe..efedbfb85 100755 --- a/contrib/redhat/sshd.init +++ b/contrib/redhat/sshd.init | |||
@@ -15,6 +15,8 @@ | |||
15 | # source function library | 15 | # source function library |
16 | . /etc/rc.d/init.d/functions | 16 | . /etc/rc.d/init.d/functions |
17 | 17 | ||
18 | [ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd | ||
19 | |||
18 | RETVAL=0 | 20 | RETVAL=0 |
19 | 21 | ||
20 | # Some functions to make the below more readable | 22 | # Some functions to make the below more readable |
@@ -104,7 +106,7 @@ case "$1" in | |||
104 | 106 | ||
105 | echo -n "Starting sshd: " | 107 | echo -n "Starting sshd: " |
106 | if [ ! -f $PID_FILE ] ; then | 108 | if [ ! -f $PID_FILE ] ; then |
107 | sshd | 109 | sshd $OPTIONS |
108 | RETVAL=$? | 110 | RETVAL=$? |
109 | if [ "$RETVAL" = "0" ] ; then | 111 | if [ "$RETVAL" = "0" ] ; then |
110 | my_success "sshd startup" "sshd" | 112 | my_success "sshd startup" "sshd" |