diff options
Diffstat (limited to 'app-admin/glance/files')
-rw-r--r-- | app-admin/glance/files/glance.initd | 21 | ||||
-rw-r--r-- | app-admin/glance/files/glance.initd-2 | 15 | ||||
-rw-r--r-- | app-admin/glance/files/glance.initd-r2 | 17 |
3 files changed, 53 insertions, 0 deletions
diff --git a/app-admin/glance/files/glance.initd b/app-admin/glance/files/glance.initd new file mode 100644 index 000000000000..1ece1ad58f82 --- /dev/null +++ b/app-admin/glance/files/glance.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 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 +pidfile=/var/run/glance/${SVCNAME}.pid +required_files=/etc/glance/${SVCNAME}.conf + +start_stop_daemon_args="--quiet --user ${GLANCE_USER:-glance}" + +depend() { + need net +} + +start_pre() { + checkpath --directory --owner ${GLANCE_USER:-glance}:${GLANCE_GROUP:-glance} --mode 0755 ${GLANCE_RUN:-/var/run/glance} +} + diff --git a/app-admin/glance/files/glance.initd-2 b/app-admin/glance/files/glance.initd-2 new file mode 100644 index 000000000000..4d4849f77e78 --- /dev/null +++ b/app-admin/glance/files/glance.initd-2 @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Starts ${SVCNAME} service for OpenStack" + +command=/usr/bin/${RC_SVCNAME} +command_user="${GLANCE_USER:-glance}" +command_background=yes +pidfile=/run/${RC_SVCNAME}.pid +required_files=/etc/glance/${RC_SVCNAME}.conf + +depend() { + need net +} diff --git a/app-admin/glance/files/glance.initd-r2 b/app-admin/glance/files/glance.initd-r2 new file mode 100644 index 000000000000..338de069750c --- /dev/null +++ b/app-admin/glance/files/glance.initd-r2 @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Starts ${RC_SVCNAME} service for OpenStack" + +command=/usr/bin/${RC_SVCNAME} +command_user="${GLANCE_USER:-glance}" +command_background=yes +pidfile=/run/${RC_SVCNAME}.pid +required_files=/etc/glance/${RC_SVCNAME}.conf + +start_stop_daemon_args="--quiet" + +depend() { + need net +} |