summarylogtreecommitdiffstats
path: root/lldpd-service.patch
blob: 3dae12e28e6b927d2870f76f4659bfb7a3d82d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -up src/lldpd/src/daemon/lldpd.service.in.orig src/lldpd/src/daemon/lldpd.service.in
--- src/lldpd/src/daemon/lldpd.service.in.orig	2013-10-22 14:59:11.000000000 -0600
+++ src/lldpd/src/daemon/lldpd.service.in	2013-10-22 15:23:40.000000000 -0600
@@ -1,15 +1,14 @@
 [Unit]
 Description=LLDP daemon
 Documentation=man:lldpd(8)
-After=network.target
+Requires=snmpd.service
+After=snmpd.service network.target
 RequiresMountsFor=@PRIVSEP_CHROOT@
 
 [Service]
 Type=notify
 NotifyAccess=main
-EnvironmentFile=-/etc/default/lldpd
-EnvironmentFile=-/etc/sysconfig/lldpd
-ExecStart=@prefix@/sbin/lldpd $DAEMON_ARGS $LLDPD_OPTIONS
+ExecStart=@sbindir@/lldpd -x -c -f -s -e -l -M 2
 ExecStartPre=/bin/mkdir -p @PRIVSEP_CHROOT@/etc
 ExecStartPre=/bin/cp /etc/localtime @PRIVSEP_CHROOT@/etc/localtime
 Restart=on-failure