[systemd-devel] Question about service dependency handling in systemd-228

2017-11-24 Thread Bao Nguyen
Hello everyone, I would like to have a question regarding to the building dependency and cycle dependency handling on systemd-228. In my system, I have some socket and service files, it has a cycle on socket target, when I run on system-228, systemd-228 throws [ 40.358582] systemd[1]: Set

[systemd-devel] stacked automounts

2017-11-24 Thread Olaf Hering
Is there a way to have stacked automounts? In this example only /d is mounted when /d/l/1/ is accessed: LABEL=d/d xfs noatime,x-systemd.automount,x-systemd.idle-timeout=22 1 2 /d/i/1.iso /d/l/1 iso9660 ro,loop,x-systemd.automount,x-systemd.idle-timeout=11 0 0 In the logs I see: Set

Re: [systemd-devel] what is the best way to connect to another user's service (when root)?

2017-11-24 Thread Jeff Solomon
On the one hand, I understand your point. On the other hand, there are three other ways of doing this: systemd-run -t --setenv=XDG_RUNTIME_DIR=/run/user/ --uid= systemctl --user ... su -l -c "XDG_RUNTIME_DIR=/run/user/ systemctl --user" machinectl --uid= shell /bin/systemctl --user

Re: [systemd-devel] what is the best way to connect to another user's service (when root)?

2017-11-24 Thread Lennart Poettering
On Do, 23.11.17 22:56, Jeff Solomon (jsolomon8...@gmail.com) wrote: > Hi, > > More questions about the systemd user service. > > Inside a script running as root, I want to control another user's service. > > I have found two ways to do this: > > systemd-run -t