diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2011-05-22 21:04:13 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2011-05-22 21:04:13 +0000 |
commit | 5dbbd031bbddbc644e2b385504627d61d55823c7 (patch) | |
tree | 58190176d586cb3a23908211de8bc446e26b61b9 /games-server | |
parent | arm stable, bug #367575 (diff) | |
download | gentoo-2-5dbbd031bbddbc644e2b385504627d61d55823c7.tar.gz gentoo-2-5dbbd031bbddbc644e2b385504627d61d55823c7.tar.bz2 gentoo-2-5dbbd031bbddbc644e2b385504627d61d55823c7.zip |
update init script with patch from Anton Podavalov via bug #368203
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/pvpgn/ChangeLog | 7 | ||||
-rw-r--r-- | games-server/pvpgn/files/pvpgn.rc | 16 |
2 files changed, 15 insertions, 8 deletions
diff --git a/games-server/pvpgn/ChangeLog b/games-server/pvpgn/ChangeLog index 59702616ace8..9fff241591a9 100644 --- a/games-server/pvpgn/ChangeLog +++ b/games-server/pvpgn/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-server/pvpgn -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.20 2010/09/14 09:24:19 hwoarang Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.21 2011/05/22 21:04:13 mr_bones_ Exp $ + + 22 May 2011; Michael Sterrett <mr_bones_@gentoo.org> files/pvpgn.rc: + update init script with patch from Anton Podavalov via bug #368203 14 Sep 2010; Markos Chandras <hwoarang@gentoo.org> pvpgn-1.8.5.ebuild: Keyworded for amd64. Bug #336410. Thanks to Anton Podavalov diff --git a/games-server/pvpgn/files/pvpgn.rc b/games-server/pvpgn/files/pvpgn.rc index 087f9aebda26..687eee700982 100644 --- a/games-server/pvpgn/files/pvpgn.rc +++ b/games-server/pvpgn/files/pvpgn.rc @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/files/pvpgn.rc,v 1.1 2007/03/07 17:22:05 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/files/pvpgn.rc,v 1.2 2011/05/22 21:04:13 mr_bones_ Exp $ opts="reload shutdown" @@ -19,19 +19,23 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting PvPGN NAME" - start-stop-daemon --start --quiet \ - --exec GAMES_BINDIR/NAME -c GAMES_USER:GAMES_GROUP -- + start-stop-daemon --background --start --quiet \ + --make-pidfile \ + --pidfile /var/run/NAME.pid \ + --exec GAMES_BINDIR/NAME -c GAMES_USER:GAMES_GROUP -- -f eend $? "Failed to start NAME" } stop() { ebegin "Stopping PvPGN NAME" - killall NAME + start-stop-daemon --stop --quiet --retry 20 \ + --pidfile /var/run/NAME.pid eend $? } reload() { ebegin "Rehashing configuration for PvPGN NAME" - killall -1 NAME + start-stop-daemon --stop --signal HUP --oknodo \ + --pidfile /var/run/NAME.pid eend $? } |