Trying to remove /usr/local/share from system-bus .services search path
TPCdb at mklab.ph.rhul.ac.uk
TPCdb at mklab.ph.rhul.ac.uk
Fri Dec 18 19:08:17 PST 2015
Dear All,
I am attempting to remove /usr/local/share from the list of paths dbus-daemon will search for system bus .service files in, but without success.
According to dbus-1.6.12/doc/dbus-specification.html from the dbus source package,
"On Unix systems, the system bus should default to searching for .service files in /usr/local/share/dbus-1/system-services, /usr/share/dbus-1/system-services and
/lib/dbus-1/system-services, with that order of precedence. It may also search other implementation-specific locations, but should not vary these locations based on
environment variables. ^[3]"
I tried the following edit, (unified diff follows),
> --- etc/dbus-1/system.conf.orig 2015-03-05 22:59:28.000000000 +0000
> +++ etc/dbus-1/system.conf 2015-12-18 19:22:48.000000000 +0000
> @@ -20,8 +20,10 @@
> <!-- Fork into daemon mode -->
> <fork/>
>
> +
> <!-- We use system service launching using a helper -->
> - <standard_system_servicedirs/>
> + <!-- Expt. mod. T.Crane, Fri Dec 18 19:22:03 GMT 2015 -->
> + <standard_system_servicedirs>/usr/share/<standard_system_servicedirs/>
>
> <!-- This is a setuid helper that is used to launch system services -->
> <servicehelper>/lib64/dbus-1/dbus-daemon-launch-helper</servicehelper>
but that resulted in dbus-daemon failing to start with the following diagnostic (from journalctl)
> dbus-daemon[647]: Failed to start message bus: No text content expected inside XML element standard_system_servicedirs in configuration file
My motivation is to deal with this problem (diagnostic from journalctl), produced with the default configuration,
> dbus-daemon[663]: Cannot setup inotify for '/usr/local/share/dbus-1/system-services'; error 'Permission denied'
which occurs because /usr/local is the mountpoint for a remote mount on my systems -- something I don't want to have to change.
Please advise?
Many thanks
Tom Crane
System details:
OS: CentOS Linux release 7.1.1503 (Core) [CERN variant]
DBUS: dbus-1.6.12-11.el7.x86_64
SYSTEMD: systemd-208-20.el7_1.6.x86_64
--
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England.
Email: T dot Crane at rhul dot ac dot uk
More information about the dbus
mailing list