From 6a332588e14116977841fba80c063c59011d0ea0 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Wed, 3 Aug 2011 23:03:29 +0000 Subject: runit-scripts: change lighttpd to start with lighttpd-angel (To accept signals) --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runit-scripts-2.1.1-24.src.tar.gz | 1 + abs/core/runit-scripts/runitscripts/services/lighttpd/run | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 120000 abs/core/runit-scripts/runit-scripts-2.1.1-24.src.tar.gz diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index aa7b767..e186f99 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=2.1.1 -pkgrel=23 +pkgrel=24 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runit-scripts-2.1.1-24.src.tar.gz b/abs/core/runit-scripts/runit-scripts-2.1.1-24.src.tar.gz new file mode 120000 index 0000000..46a0e4a --- /dev/null +++ b/abs/core/runit-scripts/runit-scripts-2.1.1-24.src.tar.gz @@ -0,0 +1 @@ +/data/pkg_repo/packages/runit-scripts-2.1.1-24.src.tar.gz \ No newline at end of file diff --git a/abs/core/runit-scripts/runitscripts/services/lighttpd/run b/abs/core/runit-scripts/runitscripts/services/lighttpd/run index 798690c..f9c574d 100755 --- a/abs/core/runit-scripts/runitscripts/services/lighttpd/run +++ b/abs/core/runit-scripts/runitscripts/services/lighttpd/run @@ -4,5 +4,10 @@ export TERM=linux . /etc/rc.d/functions stat_runit "Starting lighttpd" +if [ ! -d /var/run/lighttpd ] ; then + mkdir -p /var/run/lighttpd + chown http /var/run/lighttpd +fi -exec /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf +# Using -angel to start lighttpd allows lighttpd to accept signals +exec /usr/sbin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf -- cgit v0.12