From: Vincent Bernat Date: Tue, 19 Dec 2017 13:03:59 +0000 (+0100) Subject: daemon: don't use @mkdir_p@ substitution for systemd service file X-Git-Tag: 1.0.0~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0ca585f627aa;p=thirdparty%2Flldpd.git daemon: don't use @mkdir_p@ substitution for systemd service file It is the path to the host mkdir, not to the target mkdir. Just use /bin/mkdir. --- diff --git a/edit.am b/edit.am index ade52ce1..e531590b 100644 --- a/edit.am +++ b/edit.am @@ -9,7 +9,6 @@ edit = $(SED) \ -e 's|@includedir[@]|$(includedir)|g' \ -e 's|@exec_prefix[@]|$(exec_prefix)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ - -e 's|@mkdir_p[@]|$(mkdir_p)|g' \ -e 's|@VERSION[@]|$(VERSION)|g' \ -e 's|@PACKAGE[@]|$(PACKAGE)|g' \ -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \ diff --git a/src/daemon/lldpd.service.in b/src/daemon/lldpd.service.in index fdb7338f..6e1cff8a 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=@mkdir_p@ @PRIVSEP_CHROOT@ +ExecStartPre=/bin/mkdir @PRIVSEP_CHROOT@ ExecStart=@sbindir@/lldpd $DAEMON_ARGS $LLDPD_OPTIONS Restart=on-failure PrivateTmp=yes