Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334437 - app-admin/prelude-manager fails to start when /var/run/prelude-manager is missing
Summary: app-admin/prelude-manager fails to start when /var/run/prelude-manager is mis...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: keepdir-var-run_lock 318839
  Show dependency tree
 
Reported: 2010-08-25 13:20 UTC by Eray Aslan
Modified: 2012-10-02 15:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gentoo.init (gentoo.init,738 bytes, text/plain)
2010-08-25 13:22 UTC, Eray Aslan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eray Aslan gentoo-dev 2010-08-25 13:20:30 UTC
/var/run can be mounted tmpfs and cleared during a reboot.  Hence, programs (or
their init scripts) should not rely on dirs under /var/run and should create
them if necessary instead.

prelude-manager fails to start when /var/run/prelude-manager is missing:

Aug 25 15:17:51 east prelude-manager: ERROR: could not open /var/run/prelude-manager for reading/writing. (manager-auth.c:677 manager_auth_init)

The attached init script creates the missing dir if necessary.  For you ref:

--- files/gentoo.init.old	2009-04-13 00:06:42.000000000 +0300
+++ files/gentoo.init	2010-08-25 16:19:20.000000000 +0300
@@ -9,7 +9,14 @@
 	need net
 }
 
+checkconfig() {
+	if [ ! -e "/var/run/${PROGNAME}" ]; then
+		checkpath -q -d -o root:root -m 0755 "/var/run/${PROGNAME}" || return 1
+	fi
+}
+
 start() {
+	checkconfig || return 1


Reproducible: Always
Comment 1 Eray Aslan gentoo-dev 2010-08-25 13:22:11 UTC
Created attachment 244539 [details]
gentoo.init
Comment 2 Sergey Popov gentoo-dev 2012-10-02 15:52:09 UTC
Prelude was removed from tree