summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/init.d/sshd')
-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