From: Stefan Schantl Date: Mon, 13 Jun 2011 18:04:26 +0000 (+0200) Subject: radvd: Add reload command for systemd. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96059e1661e787e2290da7419242a03e83de4eba;p=ipfire-3.x.git radvd: Add reload command for systemd. Also add support for restarting the service on failures. Fixes #206 --- diff --git a/pkgs/radvd/radvd.nm b/pkgs/radvd/radvd.nm index c26f0720b..d82c7e98c 100644 --- a/pkgs/radvd/radvd.nm +++ b/pkgs/radvd/radvd.nm @@ -26,7 +26,7 @@ include $(PKGROOT)/Include PKG_NAME = radvd PKG_VER = 1.8 -PKG_REL = 2 +PKG_REL = 3 PKG_MAINTAINER = PKG_GROUPS = System/Daemons diff --git a/pkgs/radvd/systemd/radvd.service b/pkgs/radvd/systemd/radvd.service index 05d0552b1..08cbc1eef 100644 --- a/pkgs/radvd/systemd/radvd.service +++ b/pkgs/radvd/systemd/radvd.service @@ -5,8 +5,10 @@ After=network.target [Service] ExecStart=/usr/sbin/radvd -C /etc/radvd.conf -u radvd +ExecReload=/bin/kill -HUP $MAINPID Type=forking -PIDFile=/var/run/radvd/radvd.pid +PIDFile=/run/radvd/radvd.pid +Restart=on-failure [Install] WantedBy=multi-user.target