freebsd-ports/net/tcserver/files/patch-ac
Chris D. Faulhaber 6d6f126f30 - 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.
2000-09-08 16:39:07 +00:00

28 lines
778 B
Text

--- scripts/tcserver.init.orig Wed Apr 12 01:22:35 2000
+++ scripts/tcserver.init Fri Sep 8 12:29:55 2000
@@ -15,14 +15,14 @@
# ============================================================================
# replace this with the full path to tcserver
-BIN=../tcserver
+BIN=__PREFIX__/sbin/tcserver
# replace this with the full path to the configuration directory
-DIR=..
+DIR=__PREFIX__/etc
# replace this with the full path to the file specified in your PID_FILE
# variable in tcserver.cfg
-PIDFILE=../tcserver.pid
+PIDFILE=__PID_DIR__/tcserver.pid
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')