]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: use "mkdir -p" instead of "mkdir"
authorVincent Bernat <vincent@bernat.im>
Mon, 9 Apr 2018 11:39:46 +0000 (13:39 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 9 Apr 2018 11:39:46 +0000 (13:39 +0200)
We don't use `RuntimeDirectory=` because it needs to be relative to
`/run`. As PRIVSEP_CHROOT can be any value, this is not possible.

src/daemon/lldpd.service.in

index 6e1cff8ae0ba67309efe21817fab4effb03936bb..429183030c09201b55fb9049df0d5a408ed15723 100644 (file)
@@ -9,7 +9,7 @@ Type=notify
 NotifyAccess=main
 EnvironmentFile=-/etc/default/lldpd
 EnvironmentFile=-/etc/sysconfig/lldpd
-ExecStartPre=/bin/mkdir @PRIVSEP_CHROOT@
+ExecStartPre=/bin/mkdir -p @PRIVSEP_CHROOT@
 ExecStart=@sbindir@/lldpd $DAEMON_ARGS $LLDPD_OPTIONS
 Restart=on-failure
 PrivateTmp=yes