diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-02-08 12:00:11 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-02-08 12:00:11 +0000 |
commit | d506a3f99217af584b604c48403b27bc41a02418 (patch) | |
tree | cf013625f5619ab53e999512731a6797af9fe25a /net-irc/iroffer-dinoex | |
parent | dev-util/nvidia-cuda-toolkit: Drop old (diff) | |
download | gentoo-2-d506a3f99217af584b604c48403b27bc41a02418.tar.gz gentoo-2-d506a3f99217af584b604c48403b27bc41a02418.tar.bz2 gentoo-2-d506a3f99217af584b604c48403b27bc41a02418.zip |
Port reload and reconnect initscript options from sunrise ebuild
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-irc/iroffer-dinoex')
-rw-r--r-- | net-irc/iroffer-dinoex/ChangeLog | 5 | ||||
-rw-r--r-- | net-irc/iroffer-dinoex/files/iroffer-dinoex.init | 19 |
2 files changed, 22 insertions, 2 deletions
diff --git a/net-irc/iroffer-dinoex/ChangeLog b/net-irc/iroffer-dinoex/ChangeLog index e7b1af6f085a..24cb9c86d806 100644 --- a/net-irc/iroffer-dinoex/ChangeLog +++ b/net-irc/iroffer-dinoex/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-irc/iroffer-dinoex # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/ChangeLog,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/ChangeLog,v 1.2 2013/02/08 12:00:11 pinkbyte Exp $ + + 08 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> files/iroffer-dinoex.init: + Port reload and reconnect initscript options from sunrise ebuild *iroffer-dinoex-3.28 (08 Feb 2013) diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex.init b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init index 248dd8136161..1f440f49c5ad 100644 --- a/net-irc/iroffer-dinoex/files/iroffer-dinoex.init +++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init @@ -1,7 +1,12 @@ #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/files/iroffer-dinoex.init,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/files/iroffer-dinoex.init,v 1.2 2013/02/08 12:00:11 pinkbyte Exp $ + +extra_commands="reload reconnect" + +description_reload="Reload the config file" +description_reconnect="Force reconnection to an IRC server" depend() { need net @@ -29,3 +34,15 @@ stop() { start-stop-daemon --stop --pidfile "${PIDFILE}" --exec "${BIN}" eend $? } + +reload(){ + ebegin "Reload iroffer-dinoex" + start-stop-daemon --signal SIGUSR2 --pidfile "${PIDFILE}" + eend $? +} + +reconnect(){ + ebegin "Try to reconnect iroffer-dinoex to servers" + start-stop-daemon --signal SIGUSR1 --pidfile "${PIDFILE}" + eend $? +} |