On 10. nov. 2016 22:26, Michael Ströder wrote:
Kai Stian Olstad wrote:
On 10. nov. 2016 18:41, Michael Ströder wrote:
Is there any fact or similar pointing to the directory where to install systemd
unit files on different Linux distros?
Output of systemd-path is not helpful for this.
Currently I have in a custom map:
Debian: "/lib/systemd/system" (sigh!)
openSUSE: "/usr/lib/systemd/system"
CentOS: "/usr/lib/systemd/system"
Every one of them and a lot of others distros, if not all, support
/etc/systemd/system, is there a reason for not using that directory?
Is a local "systemctl enable/disable" still possible when adding the unit files
directly to /etc/systemd/system? I thought this is done by adding/removing
symbolic links.
A link is created in /etc/systemd/system/*.target.wants to the service
file in /etc/systemd/system/ when enable is executed, and the link is
removed with disable, so yes it's still possible.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/808186e9-52af-fdf9-c20a-501ec1180ebf%40olstad.com.
For more options, visit https://groups.google.com/d/optout.