Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442974 - dev-db/firebird-2.5.1.26351.0 loses his symlink to /var/run/firebird
Summary: dev-db/firebird-2.5.1.26351.0 loses his symlink to /var/run/firebird
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William L. Thomson Jr.
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2012-11-13 11:24 UTC by RazrFalcon
Modified: 2013-01-24 04:52 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RazrFalcon 2012-11-13 11:24:55 UTC
After reboot folder /var/run/firebird has always disappears, maybe because /run mounted as tmpfs.
So we need to create /var/run/firebird folder after each reboot, manualy.

Reproducible: Always
Comment 1 William L. Thomson Jr. 2012-11-13 18:33:49 UTC
Likely need to add something to init script to create on start
Comment 2 William L. Thomson Jr. 2013-01-24 04:25:04 UTC
diff -Naur /usr/portage/dev-db/firebird/files/firebird.init.d.2.5 /etc/init.d/firebird 
--- /usr/portage/dev-db/firebird/files/firebird.init.d.2.5      2011-05-12 14:42:35.000000000 -0400
+++ /etc/init.d/firebird        2013-01-23 23:24:03.000000000 -0500
@@ -8,6 +8,7 @@
 }
 
 start(){
+       [[ ! -d /var/run/firebird ]] && mkdir /var/run/firebird
        ebegin "Starting Firebird server"
        start-stop-daemon --start --pidfile $PIDFILE --user $FBUSER --group $FBGROUP --exec $FBGUARD -- $FB_OPTS
        eend $?
Comment 3 William L. Thomson Jr. 2013-01-24 04:26:05 UTC
To lazy to put in file and add as diff, but previous comment shows changes to init file for tmpfs /run
Comment 4 Sergey Popov gentoo-dev 2013-01-24 04:52:23 UTC
(In reply to comment #2)
> +       [[ ! -d /var/run/firebird ]] && mkdir /var/run/firebird

this should be handled with checkpath

+  24 Jan 2013; Sergey Popov <pinkbyte@gentoo.org>
+  -firebird-2.1.3.18185.0.ebuild, +firebird-2.1.3.18185.0-r1.ebuild,
+  -firebird-2.5.1.26351.0.ebuild, +firebird-2.5.1.26351.0-r1.ebuild,
+  files/firebird.init.d, files/firebird.init.d.2.5:
+  Add checkpath to initscript to fix /var/run dir handling issue, wrt bug
+  #442974, revbump