From 4a91beaaf934a29e548252ead2ba5ec6558e2174 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 5 May 2005 19:53:30 +0000 Subject: [PATCH] - 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". --- pl_sshd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "$@" -- 2.43.0