summaryrefslogtreecommitdiff
path: root/app-admin/glance/files/glance.initd
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/glance/files/glance.initd')
-rw-r--r--app-admin/glance/files/glance.initd15
1 files changed, 15 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..57274ac2dfee
--- /dev/null
+++ b/app-admin/glance/files/glance.initd
@@ -0,0 +1,15 @@
+#!/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/${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
+}