]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
systemd: use full path for mkdir/cp
authorVincent Bernat <vincent.bernat@dailymotion.com>
Tue, 1 Oct 2013 14:00:49 +0000 (16:00 +0200)
committerVincent Bernat <vincent.bernat@dailymotion.com>
Tue, 1 Oct 2013 14:00:49 +0000 (16:00 +0200)
Otherwise, systemd will just ignore the commands.

src/daemon/lldpd.service.in

index 61e157b634f8812ed2327f90470ddb2b3211f89d..47af656940a1c7e6efcde2852d9c6acb26082a60 100644 (file)
@@ -7,8 +7,8 @@ Type=notify
 NotifyAccess=main
 EnvironmentFile=-/etc/default/lldpd
 ExecStart=@prefix@/sbin/lldpd $DAEMON_ARGS
-ExecStartPre=mkdir -p @PRIVSEP_CHROOT@/etc
-ExecStartPre=cp /etc/localtime @PRIVSEP_CHROOT@/etc/localtime
+ExecStartPre=/bin/mkdir -p @PRIVSEP_CHROOT@/etc
+ExecStartPre=/bin/cp /etc/localtime @PRIVSEP_CHROOT@/etc/localtime
 Restart=on-failure
 
 [Install]