Bug 216049 - devel/dbus fail to start
Summary: devel/dbus fail to start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gnome (Nobody)
Depends on:
Reported: 2017-01-14 04:31 UTC by rozhuk.im
Modified: 2017-01-15 14:29 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gnome)

add mkdir -p /var/run/dbus/ to rc.d script (776 bytes, patch)
2017-01-14 04:31 UTC, rozhuk.im
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rozhuk.im 2017-01-14 04:31:49 UTC
Created attachment 178872 [details]
add mkdir -p /var/run/dbus/ to rc.d script

Im store /var/run in tmpfs and after last update get error:

slim: open_session: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

mkdir -p /var/run/dbus/
and start dbus fix it.
Comment 1 Tijl Coosemans freebsd_committer 2017-01-14 14:23:20 UTC
Why do you use tmpfs?  By default, /var/run is cleaned on every boot.
Comment 2 rozhuk.im 2017-01-14 22:36:28 UTC
I use tmpfs for /tmp and /var/run (/var/tmp -> simlink to /tmp) to have one config that works good on all platforms.
Comment 3 commit-hook freebsd_committer 2017-01-14 22:49:40 UTC
A commit references this bug:

Author: tijl
Date: Sat Jan 14 22:48:49 UTC 2017
New revision: 431498
URL: https://svnweb.freebsd.org/changeset/ports/431498

  Create /var/run/dbus from rc script for users who mount tmpfs on /var/run.

  PR:		216049

Comment 4 Tijl Coosemans freebsd_committer 2017-01-15 13:25:24 UTC
(In reply to rozhuk.im from comment #2)
> I use tmpfs for /tmp and /var/run (/var/tmp -> simlink to /tmp) to have one
> config that works good on all platforms.

Ok, I have committed the change.  One thing though, /var/tmp doesn't have the same purpose as /tmp.  /var/tmp is meant to survive reboots.  It's where editors can autosave documents while you're working on them so they can restore your work in case of a computer crash or power failure.
Comment 5 rozhuk.im 2017-01-15 14:29:03 UTC
Know about /var/tmp but it is ok for me.