Subversion Repositories configs

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 57
Line 62... Line 62...
62
 
62
 
63
# When stopping httpd, a delay (of default 10 second) is required
63
# When stopping httpd, a delay (of default 10 second) is required
64
# before SIGKILLing the httpd parent; this gives enough time for the
64
# before SIGKILLing the httpd parent; this gives enough time for the
65
# httpd parent to SIGKILL any errant children.
65
# httpd parent to SIGKILL any errant children.
66
stop() {
66
stop() {
-
 
67
	status -p ${pidfile} $httpd > /dev/null
-
 
68
	if [[ $? = 0 ]]; then
67
	echo -n $"Stopping $prog: "
69
		echo -n $"Stopping $prog: "
68
	killproc -p ${pidfile} -d ${STOP_TIMEOUT} $httpd
70
		killproc -p ${pidfile} -d ${STOP_TIMEOUT} $httpd
-
 
71
	else
-
 
72
		echo -n $"Stopping $prog: "
-
 
73
		success
-
 
74
	fi
69
	RETVAL=$?
75
	RETVAL=$?
70
	echo
76
	echo
71
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
77
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
72
}
78
}
-
 
79
 
73
reload() {
80
reload() {
74
    echo -n $"Reloading $prog: "
81
    echo -n $"Reloading $prog: "
75
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
82
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
76
        RETVAL=6
83
        RETVAL=6
77
        echo $"not reloading due to configuration syntax error"
84
        echo $"not reloading due to configuration syntax error"