diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-06 17:40:00 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-08 17:56:52 +0100 |
commit | 051977458f4078a06008bb6c6fd338cd994cf56c (patch) | |
tree | a38368fd544e883f96b686d86cbb904eb21c45c4 | |
parent | 8ac9fd188aa37e9536f42d1e796e0ae8b739d83d (diff) | |
download | mdns-repeater-051977458f4078a06008bb6c6fd338cd994cf56c.tar.gz mdns-repeater-051977458f4078a06008bb6c6fd338cd994cf56c.zip |
Add systemd support
-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 |