diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2013-06-20 10:12:00 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-21 00:07:26 +0200 |
commit | e0ade8d1e00d577686f893e0059def5866dcb9f6 (patch) | |
tree | bd2538512704abb2f373123e9aec166d883d37e0 /src | |
parent | 7d9e5527237b1a779b4cb464f64eae72c3a2162d (diff) | |
download | sssd-e0ade8d1e00d577686f893e0059def5866dcb9f6.tar.gz sssd-e0ade8d1e00d577686f893e0059def5866dcb9f6.tar.bz2 sssd-e0ade8d1e00d577686f893e0059def5866dcb9f6.zip |
Configure SYSV init scripts properly
Previously, these contained hard-coded paths. Now they are
populated correctly by the configure script.
https://fedorahosted.org/sssd/ticket/1986
Diffstat (limited to 'src')
-rw-r--r-- | src/sysv/SUSE/sssd.in (renamed from src/sysv/SUSE/sssd) | 5 | ||||
-rw-r--r-- | src/sysv/gentoo/sssd.in (renamed from src/sysv/gentoo/sssd) | 4 | ||||
-rw-r--r-- | src/sysv/sssd.in (renamed from src/sysv/sssd) | 7 |
3 files changed, 7 insertions, 9 deletions
diff --git a/src/sysv/SUSE/sssd b/src/sysv/SUSE/sssd.in index 2f98c216..04d30231 100644 --- a/src/sysv/SUSE/sssd +++ b/src/sysv/SUSE/sssd.in @@ -23,8 +23,8 @@ prog="sssd" . /etc/rc.status rc_reset -SSSD=/usr/sbin/sssd -PID_FILE=/var/run/sssd.pid +SSSD=@sbindir@/sssd +PID_FILE=@localstatedir@/run/sssd.pid case "$1" in start) @@ -75,4 +75,3 @@ case "$1" in exit 1 esac rc_exit - diff --git a/src/sysv/gentoo/sssd b/src/sysv/gentoo/sssd.in index cbaedfd5..8007b644 100644 --- a/src/sysv/gentoo/sssd +++ b/src/sysv/gentoo/sssd.in @@ -7,12 +7,12 @@ depend(){ start(){ ebegin "Starting sssd" - start-stop-daemon --start --exec /usr/sbin/sssd -- -D + start-stop-daemon --start --exec @sbindir@/sssd -- -D eend ${?} } stop(){ ebegin "Stopping sssd" - start-stop-daemon --stop --pidfile /var/run/sssd.pid + start-stop-daemon --stop --pidfile @localstatedir@/run/sssd.pid eend ${?} } diff --git a/src/sysv/sssd b/src/sysv/sssd.in index ca929e9e..8a344be7 100644 --- a/src/sysv/sssd +++ b/src/sysv/sssd.in @@ -31,10 +31,10 @@ prog="sssd" # Source function library. . /etc/init.d/functions -SSSD=/usr/sbin/sssd +SSSD=@sbindir@/sssd -LOCK_FILE=/var/lock/subsys/sssd -PID_FILE=/var/run/sssd.pid +LOCK_FILE=@localstatedir@/lock/subsys/sssd +PID_FILE=@localstatedir@/run/sssd.pid start() { [ -x $SSSD ] || exit 5 @@ -127,4 +127,3 @@ case "$1" in exit 2 esac exit $? - |