Re: not able to access system service from session service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Di, 21.08.18 10:08, deepan muthusamy (deepan.m2903@xxxxxxxxx) 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
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux