- openssh-server only requires that the path be absolute, not that it
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 5 May 2005 19:53:30 +0000 (19:53 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 5 May 2005 19:53:30 +0000 (19:53 +0000)
  actually exist. so that "service pl_sshd status" works, rename argv[0]
  to "/usr/sbin/pl_sshd".

pl_sshd.sh

index 3f0b66d..2249823 100755 (executable)
@@ -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 "$@"