From b0ca585f627aad476604a11bd356b842c664fb84 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 19 Dec 2017 14:03:59 +0100 Subject: [PATCH] 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. --- edit.am | 1 - src/daemon/lldpd.service.in | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5