diff options
Diffstat (limited to 'src/sysv')
-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 $? - |