View | Details | Raw Unified | Return to bug 2059
Collapse All | Expand All

(-)contrib/redhat/sshd.init (-4 / +4 lines)
Lines 29-35 Link Here
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
Lines 49-55 Link Here
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
Lines 58-64 Link Here
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
Lines 87-93 Link Here
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

Return to bug 2059