PDA

View Full Version : PID file not created under FreeBSD 4.3


GreyStork
11-10-2002, 22:44
As the heading indicates, the TeamSpeak Linux server fails to create a PID file on startup. Does that work under Linux? Here's my startup script (I've changed the executable file name and stufff)

#! /bin/sh

case "$1" in
start)
[ -x /usr/bin/tss2 ] && /usr/bin/tss2 -PID=/var/run/tss2.pid > /dev/null && echo 'Starting TeamSpeak 2 Server Daemon'
;;
stop)
[ -r /var/run/tss2.pid ] && kill `cat /var/run/tss2.pid` && echo 'Stopping TeamSpeak Server Daemon'
;;
restart)
$0 stop && $0 start
;;
*)
echo "Usage: `basename $0` {start|stop|restart}" >&2
;;
esac

FloorPie
12-10-2002, 07:52
Does the user you're running as have write-access to /var/run/ ?
On my system, only root has read/write access to that directory.

GreyStork
12-10-2002, 09:12
Yes, I'm presently running the server as root. An excerpt from "ps -aux":

root 872 0.0 6.0 20756 7668 v0 S 1:20PM 0:03.48 /usr/bin/tss2 -PID=/var/run/tss2.pid

DaneWeasel
19-10-2002, 01:24
I got the same problem as GreyStork... :(
The only diff from him to me is that i use FreeBSD 4.6

Any chance this will be fix'ed :confused:

mjmaltese
14-08-2003, 04:08
I know this is a bit late, but on FreeBSD the pid file is created in /usr/compat/linux/var/run if you've specified -PID=/var/run as the directory.