Gentoo Archives: gentoo-commits

From: "Christoph Mende (angelos)" <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpdas/files: mpdas.init
Date: Sat, 22 Mar 2014 16:59:12
Message-Id: 20140322165907.071D42004E@flycatcher.gentoo.org
1 angelos 14/03/22 16:59:06
2
3 Added: mpdas.init
4 Log:
5 Add init script (bug #493772), bump to EAPI5
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 84F20B43)
8
9 Revision Changes Path
10 1.1 media-sound/mpdas/files/mpdas.init
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpdas/files/mpdas.init?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpdas/files/mpdas.init?rev=1.1&content-type=text/plain
14
15 Index: mpdas.init
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2014 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpdas/files/mpdas.init,v 1.1 2014/03/22 16:59:06 angelos Exp $
21
22 depend() {
23 use net mpd
24 }
25
26 start() {
27 ebegin "Starting mpdas"
28 start-stop-daemon --background --start --exec /usr/bin/mpdas \
29 --make-pidfile --pidfile /run/mpdas.pid
30 eend $?
31 }
32
33 stop() {
34 ebegin "Stopping mpdas"
35 start-stop-daemon --stop --exec /usr/bin/mpdas \
36 --pidfile /run/mpdas.pid
37 eend $?
38 }