[Lunar-commits] <moonbase> dnsmasq: added systemd service file

Jean-Michel Bruenn wdp at lunar-linux.org
Mon Aug 15 20:24:31 CEST 2011


commit 5a0e293a86f7dba0a94873fb708baba5794f09f0
Author: Jean-Michel Bruenn <wdp at lunar-linux.org>
Date:   Mon Aug 15 20:24:31 2011 +0200

    dnsmasq: added systemd service file
---
 net/dnsmasq/systemd.d/dnsmasq.service |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/net/dnsmasq/systemd.d/dnsmasq.service b/net/dnsmasq/systemd.d/dnsmasq.service
new file mode 100644
index 0000000..b263051
--- /dev/null
+++ b/net/dnsmasq/systemd.d/dnsmasq.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=A lightweight DHCP and caching DNS server
+
+[Service]
+Type=forking
+PIDFile=/run/dnsmasq.pid
+ExecStartPre=/usr/sbin/dnsmasq --test
+ExecStart=/usr/sbin/dnsmasq --pid-file=/run/dnsmasq.pid
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target


More information about the Lunar-commits mailing list