diff options
Diffstat (limited to 'net-misc/portfwd/files/portfwd.init')
-rw-r--r-- | net-misc/portfwd/files/portfwd.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init index f9c4bd7922f0..122cf83c1e55 100644 --- a/net-misc/portfwd/files/portfwd.init +++ b/net-misc/portfwd/files/portfwd.init @@ -1,5 +1,5 @@ #!/sbin/runscript -# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/files/portfwd.init,v 1.3 2003/12/03 21:22:18 avenj Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/files/portfwd.init,v 1.4 2003/12/11 16:35:38 avenj Exp $ depend() { need net @@ -18,7 +18,7 @@ start() { ebegin "Starting portfwd" start-stop-daemon --start --quiet --pidfile /var/run/portfwd.pid --exec /usr/sbin/portfwd -- ${PORTFWD_OPTS} - _pid="`ps --no-heading -C 'portfwd' -o pid | head -n 1`" + _pid="`ps -C portfwd -o pid= | head -n 1`" if [ -n "$_pid" ] ; then echo "${_pid/ /}" > /var/run/portfwd.pid eend 0 |