[media-sound/teamspeak-server-bin] hide more behind useflag, inifile handling got removed in last commit, so need some sanity at some point, add extra script for tsdns (we might need it at some point, who knows)
This commit is contained in:
@@ -13,7 +13,7 @@ start() {
|
||||
start-stop-daemon --start --quiet --background \
|
||||
--pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \
|
||||
--user "teamspeak3" --chdir "/opt/teamspeak3-server/tsdns" \
|
||||
--exec "/opt/teamspeak3-server/tsdns/tsdnsserver_linux"
|
||||
--exec "/usr/sbin/tsdnsserver"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
10
media-sound/teamspeak-server-bin/files/tsdnsserver
Normal file
10
media-sound/teamspeak-server-bin/files/tsdnsserver
Normal file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
BASEDIR="/opt/teamspeak3-server"
|
||||
|
||||
export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
|
||||
|
||||
# work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
|
||||
cd "${BASEDIR}"
|
||||
|
||||
exec "${BASEDIR}/sbin/tsdnsserver" $*
|
||||
Reference in New Issue
Block a user