diff options
author | Jose Alberto Suarez Lopez <bass@gentoo.org> | 2011-02-22 21:43:58 +0000 |
---|---|---|
committer | Jose Alberto Suarez Lopez <bass@gentoo.org> | 2011-02-22 21:43:58 +0000 |
commit | b741a5410ce6c3a515f7e37ed73927c518d012c1 (patch) | |
tree | 8ffe5770a52f1ffea4f1eafe5b2fd4ad71c67c9a /www-servers | |
parent | Drop back down to EAPI=2 to ease upgrades #356089 by Chí-Thanh Christopher N... (diff) | |
download | gentoo-2-b741a5410ce6c3a515f7e37ed73927c518d012c1.tar.gz gentoo-2-b741a5410ce6c3a515f7e37ed73927c518d012c1.tar.bz2 gentoo-2-b741a5410ce6c3a515f7e37ed73927c518d012c1.zip |
new init script. thx #333925
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/cherokee/ChangeLog | 8 | ||||
-rw-r--r-- | www-servers/cherokee/cherokee-1.2.0.ebuild | 4 | ||||
-rw-r--r-- | www-servers/cherokee/files/cherokee-initd-1.2.0 | 39 |
3 files changed, 47 insertions, 4 deletions
diff --git a/www-servers/cherokee/ChangeLog b/www-servers/cherokee/ChangeLog index 11d7e569bcbb..447de7ee333a 100644 --- a/www-servers/cherokee/ChangeLog +++ b/www-servers/cherokee/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-servers/cherokee -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.80 2011/02/22 21:25:44 bass Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.81 2011/02/22 21:43:58 bass Exp $ + + 22 Feb 2011; <bass@gentoo.org> +files/cherokee-initd-1.2.0, + cherokee-1.2.0.ebuild: + New init script. thx #333925 *cherokee-1.2.0 (22 Feb 2011) diff --git a/www-servers/cherokee/cherokee-1.2.0.ebuild b/www-servers/cherokee/cherokee-1.2.0.ebuild index 9b9d248feedf..39425ebed77b 100644 --- a/www-servers/cherokee/cherokee-1.2.0.ebuild +++ b/www-servers/cherokee/cherokee-1.2.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.0.ebuild,v 1.1 2011/02/22 21:25:44 bass Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.0.ebuild,v 1.2 2011/02/22 21:43:58 bass Exp $ EAPI=2 PYTHON_DEPEND="admin? 2" @@ -91,7 +91,7 @@ src_install () { dodoc AUTHORS ChangeLog use pam && pamd_mimic system-auth cherokee auth account session - newinitd "${FILESDIR}/${PN}-initd-0.99.23" ${PN} || die "newinitd failed" + newinitd "${FILESDIR}/${PN}-initd-1.2.0" ${PN} || die "newinitd failed" dodir /usr/share/doc/${PF}/contrib insinto /usr/share/${PF}/contrib diff --git a/www-servers/cherokee/files/cherokee-initd-1.2.0 b/www-servers/cherokee/files/cherokee-initd-1.2.0 new file mode 100644 index 000000000000..e99d0c1ee169 --- /dev/null +++ b/www-servers/cherokee/files/cherokee-initd-1.2.0 @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +opts="gracefull reload" + +depend() { + need net +} + +start() { + ebegin "Starting Cherokee Web Server" + start-stop-daemon --start -b \ + --exec /usr/sbin/cherokee + eend $? +} + +stop() { + ebegin "Stopping Cherokee Web Server" + start-stop-daemon --stop \ + --exec /usr/sbin/cherokee + eend $? +} + +gracefull() { + ebegin "Gracefully restarting Cherokee Web Server" + start-stop-daemon \ + --exec /usr/sbin/cherokee \ + --signal HUP + eend $? +} + +reload() { + ebegin "Restarting Cherokee Web Server and closing all open connections" + start-stop-daemon \ + --exec /usr/sbin/cherokee \ + --signal USR1 + eend $? +} |