git://git.onelab.eu
/
pl_sshd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e0081f
)
- openssh-server only requires that the path be absolute, not that it
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 5 May 2005 19:53:30 +0000
(19:53 +0000)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/pl_sshd.sh
b/pl_sshd.sh
index
3f0b66d
..
2249823
100755
(executable)
--- a/
pl_sshd.sh
+++ b/
pl_sshd.sh
@@
-21,4
+21,4
@@
name=pl_sshd
echo "$@" | grep -q -- '-p[ 0-9]' || port='-p 806'
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 "$@"