forked from Lainports/freebsd-ports
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.
28 lines
778 B
Text
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')
|