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