2016-08-30 10:09:11 +02:00
|
|
|
#!/sbin/openrc-run
|
2019-06-03 15:06:04 +02:00
|
|
|
# Copyright 1999-2019 Gentoo Foundation
|
2015-11-05 11:56:45 +01:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|