Summary: | sys-auth/keystone - start-stop-daemon: fopen `/var/run/keystone/keystone.pid': No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Davide Rebeccani <davide.rebeccani> |
Component: | [OLD] Unspecified | Assignee: | Matthew Thode ( prometheanfire ) <prometheanfire> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 332633 | ||
Attachments: | keystone.initd |
Description
Davide Rebeccani
2013-08-10 14:51:03 UTC
Created attachment 355622 [details]
keystone.initd
In attachment there is a modified keystone init file that check for the existence of /var/run/keystone directory before invoking start-stop daemon.
If the directory is missing it creates it and the start keystone, else it only starts the daemon.
Comment on attachment 355622 [details]
keystone.initd
--- files/keystone.initd 2012-12-09 22:57:11.000000000 +0100
+++ - 2013-08-11 15:37:12.599626245 +0200
@@ -30,7 +30,9 @@
. /etc/conf.d/$BASENAME
ebegin "Starting ${SVCNAME}"
-
+ if [ ! -d ${PID_PATH} ]; then
+ mkdir ${PID_PATH}
+ fi
start-stop-daemon --start --quiet --make-pidfile --pidfile "${PID_PATH}/${SVCNAME}.pid" \
--exec /usr/bin/${SVCNAME}-all --background -- --config-file=${CONFIG_FILE}
fixed in tree (in place, so remerge your stuff if you are having issues after you get the update) |