diff options
author | William Hubbs <williamh@gentoo.org> | 2016-01-29 11:08:59 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2016-01-29 11:11:05 -0600 |
commit | d853297bef8a0f8b816863f7584b9a5d243bc188 (patch) | |
tree | eeadbb15497fc7f9ae7bbc28110802f00ee9850d /www-servers/boa/files | |
parent | profiles: games-strategy/xbattle is gone (diff) | |
download | gentoo-d853297bef8a0f8b816863f7584b9a5d243bc188.tar.gz gentoo-d853297bef8a0f8b816863f7584b9a5d243bc188.tar.bz2 gentoo-d853297bef8a0f8b816863f7584b9a5d243bc188.zip |
www-servers/boa: revision bump to fix OpenRC script
https://bugs.gentoo.org/show_bug.cgi?id=571448
Diffstat (limited to 'www-servers/boa/files')
-rw-r--r-- | www-servers/boa/files/boa.conf | 6 | ||||
-rw-r--r-- | www-servers/boa/files/boa.initd | 29 |
2 files changed, 35 insertions, 0 deletions
diff --git a/www-servers/boa/files/boa.conf b/www-servers/boa/files/boa.conf index 186fcfa8958b..7402deb8e2ee 100644 --- a/www-servers/boa/files/boa.conf +++ b/www-servers/boa/files/boa.conf @@ -185,3 +185,9 @@ Alias /icons /var/www/localhost/icons ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/ +# Do not remove this line if you are using sys-apps/OpenRC to manage the +# boa server. +# A PidFile setting is needed in order for OpenRC to stop boa, and it +# must match the setting in the service script. + +PidFile /run/boa.pid diff --git a/www-servers/boa/files/boa.initd b/www-servers/boa/files/boa.initd new file mode 100644 index 000000000000..dd0242a00021 --- /dev/null +++ b/www-servers/boa/files/boa.initd @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# NB: Standard config is in /etc/boa/boa.conf +# NB: Arguments to pass to boa are in /etc/conf.d/boa + +command=/usr/sbin/boa +command_args="${BOA_OPTS}" +pidfile="/run/boa.pid" + +depend() { + need net +} + +start_pre() { + if [ -e /etc/conf.d/boa ] && [ -n "${BOA_OPTS}" ]; then + SR="$(echo ${BOA_OPTS} | awk '{ FS = " " } { print $2 }')" + else + SR=/etc/boa + fi + + if [ ! -e ${SR}/boa.conf ] ; then + eerror "You need a ${SR}/boa.conf to run Boa" + eerror "There is a sample file in /usr/share/docs/boa" + return 1 + fi +} |