Last active
April 26, 2024 07:49
-
-
Save 53845714nF/0814ce0e7479ef2cb3ef5472e49b9794 to your computer and use it in GitHub Desktop.
Systemd Unit File for my Linux Containers on Proxmox. Create a Saltminion Id for saltstack.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Move the hostnamewith the Domain to the salt minion_id. | |
DefaultDependencies=no | |
After=basic.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'echo "$(hostname).fritz.box" > /etc/salt/minion_id' | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wie man Unit service erstellt:
https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6