alpha-quadrant/dev-java/apache-archiva/files/apache-archiva.init.d

28 lines
686 B
D
Raw Normal View History

2015-11-05 11:56:45 +01:00
#!/sbin/runscript
# Copyright 1999-2015 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
}