https://bugs.contribs.org/show_bug.cgi?id=10494
--- Comment #78 from John Crisp <[email protected]> ---
OK, so.... try this.
We need a service and log directory:
mkdir /var/log/teamspeak
chown teamspeak:teamspeak /var/log/teamspeak
chmod 0755 /var/log/teamspeak
mkdir /var/service/teamspeak
mkdir /var/service/teamspeak/log
Now create a service link
ln -s /var/service/teamspeak /service/teamspeak
Check that the daemon has created the supervise directories in
/var/service/teamspeak and /var/service/teamspeak/log
ll /var/service/teamspeak
ll /var/service/teamspeak/log
Create
/var/service/run
#!/bin/sh
cd /opt/teamspeak
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
exec setuidgid teamspeak ./ts3server $@
Then set the permission:
chmod 0755 /var/service/run
Create:
/var/service/teamspeak/log
#!/bin/sh
NUM=$(/sbin/e-smith/db configuration getprop teamspeak KeepLogFiles)
exec \
/usr/local/bin/setuidgid teamspeak \
/usr/local/bin/multilog t s5000000 \
n${NUM:-10} \
/var/log/teamspeak
Then set the permission:
chmod 0755 /var/service/log/run
Now a service link:
cd /etc/rc.d/init.d
ln -s daemontools /etc/rc.d/init.d/teamspeak
And finally:
service teamspeak start
service teamspeak status
pstree -A
| `-runsv-+-multilog
| `-ts3server---16*[{ts3server}]
netstat -an |grep 9987
udp 0 0 0.0.0.0:9987 0.0.0.0:*
udp 0 0 :::9987 :::*
Check:
/var/log/teamspeak/current
/opt/teamspeak/logs
Try a reboot....
Should be about it...
Note to self: Probably needs a log rotate event added for the opt dir.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/