From: Mark Huang Date: Thu, 5 May 2005 19:53:30 +0000 (+0000) Subject: - openssh-server only requires that the path be absolute, not that it X-Git-Tag: planetlab-3_0-branch~2 X-Git-Url: http://git.onelab.eu/?p=pl_sshd.git;a=commitdiff_plain;h=4a91beaaf934a29e548252ead2ba5ec6558e2174 - openssh-server only requires that the path be absolute, not that it actually exist. so that "service pl_sshd status" works, rename argv[0] to "/usr/sbin/pl_sshd". --- diff --git a/pl_sshd.sh b/pl_sshd.sh index 3f0b66d..2249823 100755 --- a/pl_sshd.sh +++ b/pl_sshd.sh @@ -21,4 +21,4 @@ name=pl_sshd echo "$@" | grep -q -- '-p[ 0-9]' || port='-p 806' -exec /usr/sbin/sshd -o "PidFile /var/run/$name.pid" $port "$@" +exec -a /usr/sbin/pl_sshd /usr/sbin/sshd -o "PidFile /var/run/$name.pid" $port "$@"