[systemd-devel] not able to access system service from session service

Lennart Poettering lennart at poettering.net
Mon Sep 10 18:05:33 UTC 2018


On Di, 21.08.18 10:08, deepan muthusamy (deepan.m2903 at gmail.com) wrote:

> Hi,
> Thank you for the reply. Since I can't use session service to access system
> service, how can I start a application as service having session dbus as
> system service?

The system service manager instance (i.e. PID 1) is for system
services, and the user service manager instance (of which there is one
for each logged in user) is for session services. system services are
started by the service manager and should only access other system
services, but not user services. OTOH user services may access any
service they like, including system and user services. However, what
you cannot do is have *dependencies* (which means explicit systemd
unit dependencies, i.e. Requires=, Wants=, Before=, After= and
thelike) between user and system services, and both live in different
worlds when it comes to the dependency system. But this should not be
a problem normally, as the system services should all be started up
already at the time the user service manager starts anyway, hence
ordering between them should be unnecessary.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list