Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/icecast/files: init.d.icecast-2
Date: Fri, 23 May 2014 17:14:18
Message-Id: 20140523171414.9E27A2004E@flycatcher.gentoo.org
1 polynomial-c 14/05/23 17:14:14
2
3 Added: init.d.icecast-2
4 Log:
5 Version bump. Removed old. Added rewritten init script
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
8
9 Revision Changes Path
10 1.1 net-misc/icecast/files/init.d.icecast-2
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/icecast/files/init.d.icecast-2?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/icecast/files/init.d.icecast-2?rev=1.1&content-type=text/plain
14
15 Index: init.d.icecast-2
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2014 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20
21 extra_started_commands="reload"
22
23 pidfile="/var/run/icecast.pid"
24 command="/usr/bin/icecast"
25 command_args="-c /etc/icecast2/icecast.xml"
26 command_background="true"
27
28 depend() {
29 need net
30 }
31
32 reload() {
33 ebegin "Reloading Icecast2 configuration"
34 start-stop-daemon --signal HUP --pidfile ${pidfile}
35 eend $?
36 }