diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-02-10 07:26:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-02-10 07:26:08 +0000 |
commit | b17b872d44f7583a19544c20106c30e9959f46ec (patch) | |
tree | 226ae672ae2f3521b577b3b9b72df251d8146087 /net-misc/fakeidentd/files | |
parent | sed expression fix (diff) | |
download | gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.tar.gz gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.tar.bz2 gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.zip |
fix pid file writing
Diffstat (limited to 'net-misc/fakeidentd/files')
-rw-r--r-- | net-misc/fakeidentd/files/fakeidentd.rc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net-misc/fakeidentd/files/fakeidentd.rc b/net-misc/fakeidentd/files/fakeidentd.rc index bacd469c1140..24fdd8ecb72e 100644 --- a/net-misc/fakeidentd/files/fakeidentd.rc +++ b/net-misc/fakeidentd/files/fakeidentd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/files/fakeidentd.rc,v 1.2 2003/02/03 06:59:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/files/fakeidentd.rc,v 1.3 2003/02/10 07:25:28 vapier Exp $ depend() { need net @@ -15,6 +15,8 @@ start() { stop() { ebegin "Stopping fakeidentd" - killall fakeidentd + [ -e /var/run/fakeidentd.pid ] \ + && kill `cat /var/run/fakeidentd.pid` \ + && rm -f /var/run/fakeidentd.pid eend $? } |