diff options
Diffstat (limited to 'app-admin/glance/files/glance.initd')
-rw-r--r-- | app-admin/glance/files/glance.initd | 22 |
1 files changed, 22 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..81e42b341511 --- /dev/null +++ b/app-admin/glance/files/glance.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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} +} + |