diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2000-09-08 16:39:07 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2000-09-08 16:39:07 +0000 |
commit | 6d6f126f30b13647932d0e43f9a3483c105e76c3 (patch) | |
tree | 90fa7525d32468d2dfb13175623c491e4a681f40 /net/tcserver/files/patch-ac | |
parent | The default command to call Xwilling in xdm-config doesn't work. (diff) |
- Use pid-file by default so the server can be easily shutdown using the
etc/rc.d/tcserver.sh script.
- Remove pid-file after server is shutdown (server does not overwrite an
existing pid-file), otherwise subsequent shutdown operations will not
work due to an invalid pid.
Diffstat (limited to 'net/tcserver/files/patch-ac')
-rw-r--r-- | net/tcserver/files/patch-ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/tcserver/files/patch-ac b/net/tcserver/files/patch-ac index 4bff6c204878..70cd69495bf2 100644 --- a/net/tcserver/files/patch-ac +++ b/net/tcserver/files/patch-ac @@ -1,5 +1,5 @@ --- scripts/tcserver.init.orig Wed Apr 12 01:22:35 2000 -+++ scripts/tcserver.init Tue Jun 20 11:59:40 2000 ++++ scripts/tcserver.init Fri Sep 8 12:29:55 2000 @@ -15,14 +15,14 @@ # ============================================================================ @@ -18,3 +18,11 @@ if [ ! -f $BIN ]; then echo "$BIN not found. TeraCAST not started" +@@ -44,6 +44,7 @@ + kill `cat $PIDFILE` >/dev/null 2>&1 + sleep 1 + kill -9 `cat $PIDFILE` >/dev/null 2>&1 ++ rm -f $PIDFILE + ;; + + 'restart') |