mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
*/*: restore openstack
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
committed by
Alessandro Barbieri
parent
ee38810829
commit
5c8b17906e
25
sys-cluster/nova/files/nova.initd
Normal file
25
sys-cluster/nova/files/nova.initd
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Starts ${SVCNAME} service for OpenStack"
|
||||
|
||||
command="/usr/bin/${SVCNAME}"
|
||||
command_args="--config-file /etc/nova/nova.conf"
|
||||
pidfile=/run/${SVCNAME}.pid
|
||||
command_background=true
|
||||
required_files=/etc/nova/nova.conf
|
||||
if [ "$SVCNAME" = nova-compute ]; then
|
||||
required_files="${required_files} /etc/nova/nova-compute.conf"
|
||||
command_args="${command_args} --config-file /etc/nova/nova-compute.conf"
|
||||
fi
|
||||
start_stop_daemon_args="-u ${NOVA_USER:-nova}"
|
||||
retry="SIGTERM/15"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner "${NOVA_USER:-nova}":"${NOVA_GROUP:-nova}" --mode 0775 "${NOVA_RUN:-/var/lock/nova}"
|
||||
}
|
||||
Reference in New Issue
Block a user