]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
lldpd: Add systemd unit an tmpfiles file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2011 21:21:42 +0000 (22:21 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2011 21:21:42 +0000 (22:21 +0100)
Reference #149.

pkgs/lldpd/lldpd.init [deleted file]
pkgs/lldpd/lldpd.nm
pkgs/lldpd/lldpd.tmpfiles [new file with mode: 0644]
pkgs/lldpd/systemd/lldpd.service [new file with mode: 0644]

diff --git a/pkgs/lldpd/lldpd.init b/pkgs/lldpd/lldpd.init
deleted file mode 100644 (file)
index 99774d6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-description            "Starts the LLDP Daemon"
-author                 "IPFire Team"
-
-start on started network
-stop on kill-all-network-services or stopping network
-
-exec /usr/sbin/lldpd -c
-respawn
index 8787f200ccbb9440f5eeb09ec77656779287085b..690f82c9fd3e08c9ab882be7f17123d65ed15f25 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = lldpd
 PKG_VER        = 0.5.2
-PKG_REL        = 1
+PKG_REL        = 2
 
 PKG_MAINTAINER =
 PKG_GROUPS     = Networking/Tools
diff --git a/pkgs/lldpd/lldpd.tmpfiles b/pkgs/lldpd/lldpd.tmpfiles
new file mode 100644 (file)
index 0000000..0e95b5a
--- /dev/null
@@ -0,0 +1 @@
+d /var/run/lldpd 0700 lldpd lldpd -
diff --git a/pkgs/lldpd/systemd/lldpd.service b/pkgs/lldpd/systemd/lldpd.service
new file mode 100644 (file)
index 0000000..5901d8b
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Link Layer Discovery Protocol Daemon
+After=network.target
+
+[Service]
+RemainAfterExit=yes
+ExecStart=/usr/sbin/lldpd -c
+
+[Install]
+WantedBy=multi-user.target