Skip to content

How to deal with systemd services? #138

Answered by CyberShadow
Kyuuhachi asked this question in Q&A
Discussion options

You must be logged in to vote

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 make aconfmgr save to emit calls to such functions.)

It's inexact. Enabling a service with systemctl creates exactly the right set of links, doing it explicitly is easy to get wrong.

A pedantic note here - if a systemd unit is enabled, and then later its [Install] section changes (meaning, the set of links that systemd enable would create changes), then the system configuration will not be updated to the new set of links. The user would need to disable/enable it explicitly. So, if aconfmgr was to save only that the unit was ena…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kyuuhachi
Comment options

Answer selected by Kyuuhachi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants