Skip to content

Instantly share code, notes, and snippets.

@sq3
Last active January 13, 2018 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sq3/ec30c64cf45fbccbcf693f8fe9808a67 to your computer and use it in GitHub Desktop.
Save sq3/ec30c64cf45fbccbcf693f8fe9808a67 to your computer and use it in GitHub Desktop.
Custom avahi-daemon Unitfile for nspawn Containers
# the option --no-rlimits makes the difference
[Unit]
Description=Avahi mDNS/DNS-SD Stack
Requires=avahi-daemon.socket
[Service]
Type=dbus
BusName=org.freedesktop.Avahi
# Debian path is /usr/sbin/avahi-daemon
ExecStart=/usr/bin/avahi-daemon -s --no-rlimits
ExecReload=/usr/bin/avahi-daemon -r
NotifyAccess=main
[Install]
WantedBy=multi-user.target
Also=avahi-daemon.socket
Alias=dbus-org.freedesktop.Avahi.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment