From 67bc216ac2d67adcc9c559a6e661a81d9f07f415 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 26 Nov 2013 19:51:40 +0000 Subject: Implement missing reload function. Bug #324727 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!) --- net-misc/icecast/files/init.d.icecast | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'net-misc/icecast/files') diff --git a/net-misc/icecast/files/init.d.icecast b/net-misc/icecast/files/init.d.icecast index 202ce67ae5e1..1ead74c043ac 100644 --- a/net-misc/icecast/files/init.d.icecast +++ b/net-misc/icecast/files/init.d.icecast @@ -1,4 +1,8 @@ #!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" depend() { need net @@ -15,3 +19,9 @@ stop() { start-stop-daemon --stop --pidfile /var/run/icecast.pid --name icecast eend $? } + +reload() { + ebegin "Reloading Icecast2 configuration" + start-stop-daemon --signal HUP --pidfile /var/run/icecast.pid + eend $? +} -- cgit v1.2.3-65-gdbad