Local accounting TS3 /dev/shm

hellmind

Active Member
Jul 13, 2015
18
3
78
Is there a way to bypass the ts3 local accounting check ?
It creates a file 7gbhujb54g8z9hu43jre8 that prevent to run multiple instances in the same box
Its sad that you must have it on a container or vm to run that.

Isnt in linux something to have a private shm for each process ?
Cant find anything
 

Wooozel

Active Member
Dec 8, 2015
17
8
78
just an example, change it the way you like.
start.sh
Bash:
rm -f /dev/shm/7gbhujb54g8z9hu43jre8
s='teamspeak'
chown -R $s:$s /home/$s && sudo -u $s /home/$s/ts/ts3server_startscript.sh start inifile=./ts3server.ini
 

hellmind

Active Member
Jul 13, 2015
18
3
78
If you delete that file , the process that created it will be terminated.
I found a way a little complex but it works:

sudo unshare -m /bin/bash -c "umount /dev/shm;mount -n -o size=1m -t tmpfs tmpfs /dev/shm;su ts3free -c \"LD_LIBRARY_PATH=../teamspeak3-server_linux_amd64 exec ../teamspeak3-server_linux_amd64/ts3server license_accepted=1
 

Wooozel

Active Member
Dec 8, 2015
17
8
78
my bad, i forgot that this is dedicated to older server versions.
cuz my chicken server farm works like charm for years.
 
Top