]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
pid output of /etc/init.d/teamspeak status
authorarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 1 Mar 2008 16:31:53 +0000 (16:31 +0000)
committerarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 1 Mar 2008 16:31:53 +0000 (16:31 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1243 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/initscripts/init.d/teamspeak

index fde1696e56f4e7a2491a53b76e63da2027d8f67b..227b6d2f1d72a999d6d0496e802b0e4a8be6c798 100644 (file)
 #
 ########################################################################
 
-export LANG=en_US.utf8
-cd /opt/teamspeak && sudo -u teamspeak ./teamspeak2-server_startscript $*
-exit 0
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+       status)
+           statusproc /opt/teamspeak/server_linux
+       ;;      
+       *)
+           export LANG=en_US.utf8
+           cd /opt/teamspeak && sudo -u teamspeak ./teamspeak2-server_startscript $*
+           exit 0
+       ;;
+esac
 # End $rc_base/init.d/teamspeak