kumba 14/03/11 09:50:45 Modified: spread.init.d Log: Add 4.3.0 ebuild, fix init script to create /var/run/spread at startup to resolve #449242. (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D25D95E3)
Revision Changes Path 1.2 net-misc/spread/files/spread.init.d file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/spread/files/spread.init.d?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/spread/files/spread.init.d?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/spread/files/spread.init.d?r1=1.1&r2=1.2 Index: spread.init.d =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-misc/spread/files/spread.init.d,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- spread.init.d 6 Oct 2006 12:48:29 -0000 1.1 +++ spread.init.d 11 Mar 2014 09:50:45 -0000 1.2 @@ -1,21 +1,26 @@ #!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/spread/files/spread.init.d,v 1.1 2006/10/06 12:48:29 caleb Exp $ -# $Id: spread.init.d,v 1.1 2006/10/06 12:48:29 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/spread/files/spread.init.d,v 1.2 2014/03/11 09:50:45 kumba Exp $ +# $Id: spread.init.d,v 1.2 2014/03/11 09:50:45 kumba Exp $ depend() { - need net + need net +} + +mkdir_spreadirs() { + [ -d /var/run/spread ] || mkdir -p /var/run/spread } start() { - ebegin "Starting Spread Daemon" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/spread.pid --exec /usr/sbin/spread & - eend $? + ebegin "Starting Spread Daemon" + mkdir_spreadirs + start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/spread.pid --exec /usr/sbin/spread & + eend $? } stop() { - ebegin "Stopping Spread" - start-stop-daemon --stop --pidfile /var/run/spread.pid - eend $? + ebegin "Stopping Spread" + start-stop-daemon --stop --pidfile /var/run/spread.pid + eend $? }