diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | mdns-repeater.default | 2 | ||||
-rw-r--r-- | mdns-repeater.service | 15 |
3 files changed, 21 insertions, 0 deletions
@@ -52,4 +52,8 @@ clean: install: install -d $(DESTDIR)/usr/sbin + install -d $(DESTDIR)/lib/systemd/system + install -d $(DESTDIR)/etc/default install -m 0755 mdns-repeater $(DESTDIR)/usr/sbin + install -m 0644 mdns-repeater.service $(DESTDIR)/lib/systemd/system + install -m 0644 mdns-repeater.default $(DESTDIR)/etc/default/mdns-repeater
\ No newline at end of file diff --git a/mdns-repeater.default b/mdns-repeater.default new file mode 100644 index 0000000..835823d --- /dev/null +++ b/mdns-repeater.default @@ -0,0 +1,2 @@ +# Uncomment to start mDNS-repeater on the listed interfaces +#DAEMON_ARGS="eth0 eth1" diff --git a/mdns-repeater.service b/mdns-repeater.service new file mode 100644 index 0000000..689014d --- /dev/null +++ b/mdns-repeater.service @@ -0,0 +1,15 @@ +[Unit] +Description=mDNS-Repeater +After=network.target +RequiresMountsFor=/run + +[Service] +Type=notify +NotifyAccess=main +EnvironmentFile=-/etc/default/mdns-repeater +ExecStart=/usr/sbin/mdns-repeater $DAEMON_ARGS +Restart=on-failure +Type=forking + +[Install] +WantedBy=multi-user.target |