diff options
author | Colin Watson <cjwatson@debian.org> | 2013-05-07 10:06:42 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-05-07 10:06:42 +0100 |
commit | ecebda56da46a03dafff923d91c382f31faa9eec (patch) | |
tree | 449614b6c06a2622c74a609b31fcc46c60037c56 /contrib/redhat | |
parent | c6a2c0334e45419875687d250aed9bea78480f2e (diff) | |
parent | ffc06452028ba78cd693d4ed43df8b60a10d6163 (diff) |
merge 6.2p1; reorder additions to monitor.h for easier merging in future
Diffstat (limited to 'contrib/redhat')
-rw-r--r-- | contrib/redhat/openssh.spec | 2 | ||||
-rwxr-xr-x | contrib/redhat/sshd.init | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index f74ad4486..3898c6c99 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -1,4 +1,4 @@ | |||
1 | %define ver 6.1p1 | 1 | %define ver 6.2p1 |
2 | %define rel 1 | 2 | %define rel 1 |
3 | 3 | ||
4 | # OpenSSH privilege separation requires a user & group ID | 4 | # OpenSSH privilege separation requires a user & group ID |
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init index e9a751796..40c8dfd9f 100755 --- a/contrib/redhat/sshd.init +++ b/contrib/redhat/sshd.init | |||
@@ -29,7 +29,7 @@ do_restart_sanity_check() | |||
29 | { | 29 | { |
30 | $SSHD -t | 30 | $SSHD -t |
31 | RETVAL=$? | 31 | RETVAL=$? |
32 | if [ ! "$RETVAL" = 0 ]; then | 32 | if [ $RETVAL -ne 0 ]; then |
33 | failure $"Configuration file or keys are invalid" | 33 | failure $"Configuration file or keys are invalid" |
34 | echo | 34 | echo |
35 | fi | 35 | fi |
@@ -49,7 +49,7 @@ start() | |||
49 | echo -n $"Starting $prog:" | 49 | echo -n $"Starting $prog:" |
50 | $SSHD $OPTIONS && success || failure | 50 | $SSHD $OPTIONS && success || failure |
51 | RETVAL=$? | 51 | RETVAL=$? |
52 | [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd | 52 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd |
53 | echo | 53 | echo |
54 | } | 54 | } |
55 | 55 | ||
@@ -58,7 +58,7 @@ stop() | |||
58 | echo -n $"Stopping $prog:" | 58 | echo -n $"Stopping $prog:" |
59 | killproc $SSHD -TERM | 59 | killproc $SSHD -TERM |
60 | RETVAL=$? | 60 | RETVAL=$? |
61 | [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd | 61 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd |
62 | echo | 62 | echo |
63 | } | 63 | } |
64 | 64 | ||
@@ -87,7 +87,7 @@ case "$1" in | |||
87 | condrestart) | 87 | condrestart) |
88 | if [ -f /var/lock/subsys/sshd ] ; then | 88 | if [ -f /var/lock/subsys/sshd ] ; then |
89 | do_restart_sanity_check | 89 | do_restart_sanity_check |
90 | if [ "$RETVAL" = 0 ] ; then | 90 | if [ $RETVAL -eq 0 ] ; then |
91 | stop | 91 | stop |
92 | # avoid race | 92 | # avoid race |
93 | sleep 3 | 93 | sleep 3 |