summaryrefslogtreecommitdiff
blob: 1ece1ad58f8200890b7b2a013bd1ab4dd45096c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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}
}