From bd4aeefe33e63f613512604e47bfca7b2187697d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 3 Nov 2019 16:06:58 +0000 Subject: gentoo resync : 03.11.2019 --- games-server/ut2004-ded/files/ut2004-ded.confd | 11 ++++------- games-server/ut2004-ded/files/ut2004-ded.initd | 26 +++++++------------------- 2 files changed, 11 insertions(+), 26 deletions(-) (limited to 'games-server/ut2004-ded/files') diff --git a/games-server/ut2004-ded/files/ut2004-ded.confd b/games-server/ut2004-ded/files/ut2004-ded.confd index a485b12d221e..e82238b93de0 100644 --- a/games-server/ut2004-ded/files/ut2004-ded.confd +++ b/games-server/ut2004-ded/files/ut2004-ded.confd @@ -1,9 +1,6 @@ -# User and group the server should run as -ut2004_ded_user="@USER@" -ut2004_ded_group="@GROUP@" +# User and group the server should run as. +ut2004_ded_user="nobody" +ut2004_ded_group="nobody" -# Directory to use for HOME -ut2004_ded_home="@HOME@" - -# Any extra options you want to pass to the server +# Any extra options you want to pass to the server. ut2004_ded_opts="DM-Deck17" diff --git a/games-server/ut2004-ded/files/ut2004-ded.initd b/games-server/ut2004-ded/files/ut2004-ded.initd index fe323a9e00ee..c4cf9810cd15 100644 --- a/games-server/ut2004-ded/files/ut2004-ded.initd +++ b/games-server/ut2004-ded/files/ut2004-ded.initd @@ -1,25 +1,13 @@ #!/sbin/openrc-run -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +pidfile="/var/run/${RC_SVCNAME}.pid" +command_background="true" +command_user="${ut2004_ded_user}:${ut2004_ded_group}" +command="ut2004-ded" +command_args="${ut2004_ded_opts}" + depend() { need net } - -start() { - ebegin "Starting ut2004-ded" - start-stop-daemon --start --quiet --background --make-pidfile \ - --pidfile /var/run/ut2004-ded.pid \ - --chuid ${ut2004_ded_user}:${ut2004_ded_group} \ - --env HOME="${ut2004_ded_home}" \ - --exec "@DIR@/ut2004-ded" \ - -- ${ut2004_ded_opts} - eend $? -} - -stop() { - ebegin "Stopping ut2004-ded" - start-stop-daemon --stop \ - --pidfile /var/run/ut2004-ded.pid - eend $? -} -- cgit v1.2.3