diff options
Diffstat (limited to 'games-server/ut2004-ded/files/ut2004-ded.initd')
-rw-r--r-- | games-server/ut2004-ded/files/ut2004-ded.initd | 26 |
1 files changed, 7 insertions, 19 deletions
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 $? -} |