alpha-quadrant/dev-java/apache-archiva/files/apache-archiva.init.d
2016-08-30 10:09:11 +02:00

28 lines
687 B
D
Executable File

#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
name="Apache Archiva"
start_stop_daemon_args="-u archiva:archiva"
pidfile="/run/apache-archiva/archiva.pid"
command="${ARCHIVA_PROG}"
command_args="/etc/apache-archiva/wrapper.conf wrapper.syslog.ident=\"Archiva\" wrapper.syslog.level=DEBUG wrapper.daemonize=TRUE ${ARCHIVA_OPTS}"
extra_commands="status"
depend() {
need net
use logger
}
start_pre() {
rm -rf ${ARCHIVA_TMPDIR}
mkdir ${ARCHIVA_TMPDIR}
chown archiva:archiva ${ARCHIVA_TMPDIR}
checkpath --directory --owner archiva:archiva --mode 0775 \
/var/run/apache-archiva
}