Bug#458547: openssh-server: please consider adding possibility to give extra parameters to init script
Package: openssh-server
Version: 1:4.7p1-1
Severity: wishlist
Hi,
the following patch to the init script will allow temporary daemon
parameters to be passed on the init script command line, for example as
# /etc/init.d/ssh start "-o PermitRootLogin=yes"
$ diff -u ssh /etc/init.d/ssh
--- ssh 2008-01-01 16:39:30.000000000 +0100
+++ /etc/init.d/ssh 2008-01-01 16:41:37.000000000 +0100
@@ -22,6 +22,10 @@
. /lib/lsb/init-functions
+if [ -n "$2" ]; then
+ SSHD_OPTS="$SSHD_OPTS $2"
+fi
+
# Are we running from init?
run_by_init() {
([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
$
Greetings
Marc
Reply to: