[systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

Ian Pilcher arequipeno at gmail.com
Mon Oct 7 16:49:35 UTC 2019


On 10/7/19 4:30 AM, Colin Guthrie wrote:
> It's a nasty work around, but for me it was all wrapped up in a script
> rather than manually run, so it didn't matter too much really.
> 
> You can adjust that to suit make it more tolerant to other arguments
> etc, but it's definitely no where near as nice or elegant as the proper
> approach (esp with the pkexec prefix!)

I'm trying to use the D-Bus API (from Python), so I don't think that
will work at all.

My current thinking is to start my service as root, grab a reference to
the system bus, and then change to my non-root user.

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================


More information about the systemd-devel mailing list