From: Vincent Bernat Date: Mon, 9 Apr 2018 10:53:33 +0000 (+0200) Subject: daemon: use RuntimeDirectory= instead of mkdir to create chroot X-Git-Tag: 1.0.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=478ec07ddc343e68d1691d551dba00919fa79d70;p=thirdparty%2Flldpd.git 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. --- 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