blob: bd76d22f4999251a5534dcc1774c4d65efcfef8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#! /sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc6,v 1.1 2007/08/03 18:18:57 mjolnir Exp $
depend() {
need net
use mysql
}
start() {
ebegin "Starting TeamSpeak Server"
start-stop-daemon --start --quiet --chuid teamspeak2 \
--exec "/opt/teamspeak2-server/server_linux" -- \
-db="/var/lib/teamspeak2-server/server.dbs" \
-ini="/etc/teamspeak2-server/server.ini" \
-log="/var/log/teamspeak2-server/server.log" \
-pid="/var/run/teamspeak2-server/server.pid" \
-sql="/opt/teamspeak2-server/sql/" \
-tcpquerydocs="/opt/teamspeak2-server/tcpquerydocs" \
-httpdocs="/opt/teamspeak2-server/http/" &>/dev/null
eend $?
}
stop() {
ebegin "Stopping TeamSpeak Server"
start-stop-daemon --stop --quiet \
--pidfile "/var/run/teamspeak2-server/server.pid"
eend $?
}
restart() {
svc_stop
sleep 3
svc_start
}
|