diff options
Diffstat (limited to 'sys-cluster/neutron/files/neutron.initd')
-rw-r--r-- | sys-cluster/neutron/files/neutron.initd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-cluster/neutron/files/neutron.initd b/sys-cluster/neutron/files/neutron.initd new file mode 100644 index 000000000..26bf768dd --- /dev/null +++ b/sys-cluster/neutron/files/neutron.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Starts ${SVCNAME} service for OpenStack" + +command=/usr/bin/"${SVCNAME}" +command_background=yes +command_user="${NEUTRON_USER:-neutron}" +pidfile=/run/"${SVCNAME}".pid +required_files=(${NEUTRON_CONFS[@]:-/etc/neutron/neutron.conf}) +command_args="${required_files[@]/#/--config-file } --log-file ${NEUTRON_LOGDIR:-/var/log/neutron}/${SVCNAME#*-}.log" +retry="SIGTERM/15" + +depend() { + need net +} |