summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2013-09-12 06:27:28 +0000
committerMatthew Thode <prometheanfire@gentoo.org>2013-09-12 06:27:28 +0000
commit0d7075796f27c71caea900afac44e72b49593a81 (patch)
treeff392147fb9ae232de415372ad30c76c951c24dd /app-admin
parenthorizon updated to be fully on distutils-r1 (diff)
downloadgentoo-2-0d7075796f27c71caea900afac44e72b49593a81.tar.gz
gentoo-2-0d7075796f27c71caea900afac44e72b49593a81.tar.bz2
gentoo-2-0d7075796f27c71caea900afac44e72b49593a81.zip
fixing init script for bug 482522
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/glance/ChangeLog5
-rw-r--r--app-admin/glance/files/glance.initd8
2 files changed, 9 insertions, 4 deletions
diff --git a/app-admin/glance/ChangeLog b/app-admin/glance/ChangeLog
index 177fb7fa09ca..8b1ee0202c1d 100644
--- a/app-admin/glance/ChangeLog
+++ b/app-admin/glance/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-admin/glance
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/ChangeLog,v 1.16 2013/09/12 04:47:49 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/ChangeLog,v 1.17 2013/09/12 06:27:28 prometheanfire Exp $
+
+ 12 Sep 2013; Matthew Thode <prometheanfire@gentoo.org> files/glance.initd:
+ fixing init script for bug 482522
*glance-2012.2.4-r4 (12 Sep 2013)
*glance-2013.1.3-r1 (12 Sep 2013)
diff --git a/app-admin/glance/files/glance.initd b/app-admin/glance/files/glance.initd
index f02a36b7cac5..48b3da5d5bae 100644
--- a/app-admin/glance/files/glance.initd
+++ b/app-admin/glance/files/glance.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/files/glance.initd,v 1.2 2013/07/02 15:33:34 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/files/glance.initd,v 1.3 2013/09/12 06:27:27 prometheanfire Exp $
depend() {
need net
@@ -28,9 +28,11 @@ start() {
. /etc/conf.d/$BASENAME
ebegin "Starting ${SVCNAME}"
+ if [ ! -d ${PID_PATH} ]; then
+ mkdir ${PID_PATH}
+ fi
- start-stop-daemon --start --quiet --pidfile "${PID_PATH}/${SVCENAME}.pid" \
- --exec /usr/bin/glance-control ${SERVERNAME} start /etc/glance/glance-${SERVERNAME}.conf
+ start-stop-daemon --start --quiet --pidfile "${PID_PATH}/${SVCNAME}.pid" --exec /usr/bin/glance-control ${SERVERNAME} start
eend $? "Failed to start ${SVCNAME}"
}