]>
Commit | Line | Data |
---|---|---|
03129a5b MT |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/teamspeak | |
4 | # | |
5 | # Description : Start/Stops the teamspeak server | |
6 | # | |
7 | # Authors : Michael Tremer | |
8 | # | |
9 | # Version : 01.00 | |
10 | # | |
11 | # Notes : | |
12 | # | |
13 | ######################################################################## | |
14 | ||
88cd3066 AF |
15 | . /etc/sysconfig/rc |
16 | . $rc_functions | |
17 | ||
18 | case "$1" in | |
19 | status) | |
20 | statusproc /opt/teamspeak/server_linux | |
21 | ;; | |
22 | *) | |
23 | export LANG=en_US.utf8 | |
24 | cd /opt/teamspeak && sudo -u teamspeak ./teamspeak2-server_startscript $* | |
25 | exit 0 | |
26 | ;; | |
27 | esac | |
03129a5b | 28 | # End $rc_base/init.d/teamspeak |