From c0dd6678ef93ebe9f2108d23f9bb874dfd52a4dd Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 9 Apr 2018 13:39:46 +0200 Subject: [PATCH] daemon: use "mkdir -p" instead of "mkdir" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/lldpd.service.in b/src/daemon/lldpd.service.in index 6e1cff8a..42918303 100644 --- a/src/daemon/lldpd.service.in +++ b/src/daemon/lldpd.service.in @@ -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 -- 2.39.2