-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd integration: Support system-wide units in addition to user unit #61
Comments
It is not "hardcoded" to check for user units. The problem is that it only speaks to systemd using the session-wide D-Bus service (and not the system-wide D-Bus service). Via this service only user units are controlled. I could add a checkbox to make it use the system-wide D-Bus service. However, I'm not sure whether starting and stopping would be possible. Likely this is not permitted by default - but if the status is sufficient for you or you somehow have the permission that could make sense. |
sorry for being misinformed. i don't mind at all if it can't be started or stopped i'm mostly just interested in the status. |
I'll assign myself when I start to work on this. I actually have a setup like this as well and therefore the same use case. I've just haven't had the time time to implement it yet. If you want to try implementing it yourself let me know (shouldn't be difficult to implement). |
* Lazy initialize systemd interface and don't initialize it at all if the unit name is empty * Allow to supervise/control system-wide units in addition to user units (see #61) * Avoid redundant code
I enable syncthing using systemd like so: syncthing@nathanielcwm
However when I list that as the unit is syncthing@nathanielcwm it doesn't seem to work.
I believe it could be because it seems to be hardcoded to check for user units.
The text was updated successfully, but these errors were encountered: