How to deal with systemd services? #138
-
Sure, I can create the links with
The four above points can be lessened by enabling them with
If I do Regardless of the last point, it would be very nice to be able to simply specify which services are to be enabled and have that handled. I unfortunately don't know enough about systemd to know if there is any way to know which links should be added; does anyone else have any knowledge on this point? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One approach would be to wrap the logic in a function, and refactor
A pedantic note here - if a systemd unit is enabled, and then later its
A pedantic note here - if a service on the current system is for whatever reason enabled but not running (and maybe also the other way around), in order to preserve aconfmgr's idempotence invariants, the two states (enabled/running) would need to either be representable separately, or |
Beta Was this translation helpful? Give feedback.
One approach would be to wrap the logic in a function, and refactor
CreateLink
etc. lines to calls to that function. (However, there is currently no mechanism to makeaconfmgr save
to emit calls to such functions.)A pedantic note here - if a systemd unit is enabled, and then later its
[Install]
section changes (meaning, the set of links thatsystemd enable
would create changes), then the system configuration will not be updated to the new set of links. The user would need todisable
/enable
it explicitly. So, ifaconfmgr
was to save only that the unit was ena…