From 478ec07ddc343e68d1691d551dba00919fa79d70 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 9 Apr 2018 12:53:33 +0200 Subject: [PATCH] daemon: use RuntimeDirectory= instead of mkdir to create chroot This fix a bug introduced in b0ca585f627aa where "mkdir -p" was replaced by "mkdir" which would fail on restart due to the directory already existing. --- 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..e054dd55 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@ +RuntimeDirectory=@PRIVSEP_CHROOT@ ExecStart=@sbindir@/lldpd $DAEMON_ARGS $LLDPD_OPTIONS Restart=on-failure PrivateTmp=yes -- 2.39.5