summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2006-07-16 15:09:45 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 12:03:28 +0200
commit93259370b68367be4462db38659093b48988ed37 (patch)
tree980349d0216d29e3ae47ae0fe26d9c7192bcf017
parent[RELEASE] init-scripts-0.3.7 (diff)
downloadinit-scripts-0.3.8.tar.gz
[RELEASE] init-scripts-0.3.8v0.3.8
-rwxr-xr-xsbin/init.d/sshd9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/init.d/sshd b/sbin/init.d/sshd
index bab4781..deb5e86 100755
--- a/sbin/init.d/sshd
+++ b/sbin/init.d/sshd
@@ -10,7 +10,7 @@ option port standard_option
option config standard_option
option protocol standard_option
option listen standard_option
-option pidfile reserved_option /var/run/sshd
+option pidfile reserved_option /var/run/sshd.pid
sshd_cfgfile=""
@@ -63,6 +63,13 @@ function fct_pre_start {
fi
}
+# This ensures that we use --force to restart the service
+function do_restart {
+ do_stop $*
+ FORCE_START_STOP=1
+ do_start $*
+}
+
function do_install {
local type=""
local key