PDA

View Full Version : Successfull 'daemonish' installation of TeamSpeak server under Mandrake 9.1


cbonar
04-05-2003, 21:14
For newbies : this procedure allows the TeamSpeak server v2.0.19.16 to be run as a daemon on a Mandrake 9.1 system (each time ou start your machine).

This is quite simple, but I didn't have the knowledge of this before, and I guess I'm not the only one. Check http://lea-linux.org/admin/daemons.php3 for french explanations

- install as the readme.txt says (creation of tss user, ...)
- then you have to su root
- then cd to /etc/init.d and create a new launch script (e.g. /etc/init.d/teamspeak). For that you just have to use the existing script : tss.minimal_startscript, which is quite complete, and add the following two lines in the top comments :
# description: My TeamSpeak server
# chkconfig: 2345 99 0
- chmod +x teamspeak
- chmod +s /home/tss/tss2_rc2/linux_server program
- register the script with chkconfig, and establish the runlevels for it :
chkconfig --add teamspeak
chkconfig --level 123456 teamspeak off
chkconfig --level 2345 teamspeak on

should be ok (I also had to install mySQL so the changes I made via the web interface are saved)

reboot and launch the client on 127.0.0.1 to test

ScratchMonkey
14-06-2003, 21:42
I dislike the minimal script because it runs tss2 as root. I put together a slightly more beefy initscript for my Red Hat system that su's to nobody before launching tss2.

http://matureasskickers.net/ftp/TeamSpeak/ts2/rc2/initscripts/

My sysconfig file contains a single line to force the admin password:

TSS2ARGS="-ADMINPW=somethingcoolhere"