diff options
Diffstat (limited to 'www-servers/bozohttpd/files/bozohttpd.initscript')
-rw-r--r-- | www-servers/bozohttpd/files/bozohttpd.initscript | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/www-servers/bozohttpd/files/bozohttpd.initscript b/www-servers/bozohttpd/files/bozohttpd.initscript deleted file mode 100644 index 9f05c4184178..000000000000 --- a/www-servers/bozohttpd/files/bozohttpd.initscript +++ /dev/null @@ -1,37 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -#NB: Config is in /etc/conf.d/bozohttpd - - -depend() { - need logger net -} - -checkconfig() { - if [ -z "$DATADIR" ] || [ -z "$BIND_ADDRESS" ] || [ -z "$LISTEN_PORT" ]; then - eerror "You need to setup DATADIR, BIND_ADDRESS and LISTEN PORT in /etc/conf.d/bozohttpd first" - return 1 - fi -} - -start() { - checkconfig || return 1 - - local params="" - - [ -n "$USER" ] && params="$params -U $USER" - [ -n "$INDEX_DEFAULT" ] && params="$params -x $INDEX_DEFAULT" - [ -n "$APPEND" ] && params="$params $APPEND" - - ebegin "Starting bozohttpd" - start-stop-daemon --start --exec /usr/bin/bozohttpd -- -b -i $BIND_ADDRESS -I $LISTEN_PORT -X ${params} $DATADIR - eend ${?} -} - -stop() { - ebegin "Stopping bozohttpd" - start-stop-daemon --stop --exec /usr/bin/bozohttpd - eend ${?} -} |