From: | "Tristan Heaven (nyhm)" <nyhm@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-server/ut2004-ded/files: ut2004-ded.confd ut2004-ded.initd |
Date: | Thu, 03 Sep 2009 07:29:04 |
Message-Id: | E1MjBZL-00076s-Mc@stork.gentoo.org |
1 | nyhm 09/09/03 12:37:39 |
2 | |
3 | Added: ut2004-ded.confd ut2004-ded.initd |
4 | Log: |
5 | Apply patch to fix remote DOS, bug #239557; new init script, bug #161019 |
6 | (Portage version: 2.2_rc40/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 games-server/ut2004-ded/files/ut2004-ded.confd |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.confd?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.confd?rev=1.1&content-type=text/plain |
13 | |
14 | Index: ut2004-ded.confd |
15 | =================================================================== |
16 | # User and group the server should run as |
17 | UT2004_DED_USER="@USER@" |
18 | UT2004_DED_GROUP="@GROUP@" |
19 | |
20 | # Any extra options you want to pass to the server |
21 | UT2004_DED_OPTS="DM-Deck17 -nohomedir -ini=Default.ini -log=/dev/null" |
22 | |
23 | |
24 | |
25 | 1.1 games-server/ut2004-ded/files/ut2004-ded.initd |
26 | |
27 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.initd?rev=1.1&view=markup |
28 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.initd?rev=1.1&content-type=text/plain |
29 | |
30 | Index: ut2004-ded.initd |
31 | =================================================================== |
32 | #!/sbin/runscript |
33 | # Copyright 1999-2009 Gentoo Foundation |
34 | # Distributed under the terms of the GNU General Public License v2 |
35 | # $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.initd,v 1.1 2009/09/03 12:37:39 nyhm Exp $ |
36 | |
37 | depend() { |
38 | need net |
39 | } |
40 | |
41 | start() { |
42 | ebegin "Starting ut2004-ded" |
43 | start-stop-daemon --start --quiet --background \ |
44 | --chuid ${UT2004_DED_USER}:${UT2004_DED_GROUP} \ |
45 | --chdir "@DIR@" --exec "@DIR@/ucc-bin" -- \ |
46 | server ${UT2004_DED_OPTS} |
47 | eend $? |
48 | } |
49 | |
50 | stop() { |
51 | ebegin "Stopping ut2004-ded" |
52 | start-stop-daemon --stop --quiet --exec "@DIR@/ucc-bin" |
53 | eend $? |
54 | } |