Skip to content

Instantly share code, notes, and snippets.

@rckrdstrgrd
Created January 1, 2018 14:45
Show Gist options
  • Save rckrdstrgrd/0f9a05636062ab0ad9e16acf9aa9cc6a to your computer and use it in GitHub Desktop.
Save rckrdstrgrd/0f9a05636062ab0ad9e16acf9aa9cc6a to your computer and use it in GitHub Desktop.
Systemd service conf
[Unit]
Description=Register a mDNS/DNS-SD alias name for your computer using the Avahi daemon
After=network.target auditd.service
[Service]
EnvironmentFile=-/etc/avahi/avahi-alias.conf
ExecStart=/usr/local/bin/avahi-alias $HOST_1 $HOST_2 $HOST_3 $HOST_4 $HOST_5
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment