|
|
039bf80 |
From 84549ece3a839161794deee1721fc0cf9bf9eb9c Mon Sep 17 00:00:00 2001
|
|
|
039bf80 |
From: Paul Howarth <paul@city-fan.org>
|
|
|
039bf80 |
Date: Mon, 8 May 2017 10:16:32 +0100
|
|
|
039bf80 |
Subject: [PATCH] Use absolute pathnames for executables in systemd unit files
|
|
|
039bf80 |
|
|
|
039bf80 |
Otherwise, systemd complains about them and ignores the commands.
|
|
|
039bf80 |
---
|
|
|
039bf80 |
contrib/dist/rpm/proftpd.service | 4 ++--
|
|
|
039bf80 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
039bf80 |
|
|
|
039bf80 |
diff --git a/contrib/dist/rpm/proftpd.service b/contrib/dist/rpm/proftpd.service
|
|
|
039bf80 |
index c2fd401..07802ca 100644
|
|
|
039bf80 |
--- a/contrib/dist/rpm/proftpd.service
|
|
|
039bf80 |
+++ b/contrib/dist/rpm/proftpd.service
|
|
|
039bf80 |
@@ -8,8 +8,8 @@ PIDFile = /run/proftpd/proftpd.pid
|
|
|
039bf80 |
Environment = PROFTPD_OPTIONS=
|
|
|
039bf80 |
EnvironmentFile = -/etc/sysconfig/proftpd
|
|
|
039bf80 |
ExecStart = /usr/sbin/proftpd $PROFTPD_OPTIONS
|
|
|
039bf80 |
-ExecStartPost = touch /var/lock/subsys/proftpd
|
|
|
039bf80 |
-ExecStopPost = rm -f /var/lock/subsys/proftpd
|
|
|
039bf80 |
+ExecStartPost = /usr/bin/touch /var/lock/subsys/proftpd
|
|
|
039bf80 |
+ExecStopPost = /bin/rm -f /var/lock/subsys/proftpd
|
|
|
039bf80 |
ExecReload = /bin/kill -HUP $MAINPID
|
|
|
039bf80 |
|
|
|
039bf80 |
[Install]
|