summaryrefslogtreecommitdiff
path: root/src/sysv
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-06-24 15:30:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-25 15:24:10 +0200
commit07d82f79d2970a08628ebf71343441ec55faa6fa (patch)
treef7042311814c49439926c787e3c37035a4226347 /src/sysv
parent695cc8754aecb3dcc3a617d86b7d4b6470af175d (diff)
downloadsssd-07d82f79d2970a08628ebf71343441ec55faa6fa.tar.gz
sssd-07d82f79d2970a08628ebf71343441ec55faa6fa.tar.bz2
sssd-07d82f79d2970a08628ebf71343441ec55faa6fa.zip
init script: source /etc/sysconfig/sssd
https://fedorahosted.org/sssd/ticket/1959
Diffstat (limited to 'src/sysv')
-rw-r--r--src/sysv/sssd.in4
-rw-r--r--src/sysv/systemd/sssd.service.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/sysv/sssd.in b/src/sysv/sssd.in
index 8a344be7..6155df97 100644
--- a/src/sysv/sssd.in
+++ b/src/sysv/sssd.in
@@ -31,6 +31,10 @@ prog="sssd"
# Source function library.
. /etc/init.d/functions
+if [ -f @environment_file@ ]; then
+ . @environment_file@
+fi
+
SSSD=@sbindir@/sssd
LOCK_FILE=@localstatedir@/lock/subsys/sssd
diff --git a/src/sysv/systemd/sssd.service.in b/src/sysv/systemd/sssd.service.in
index 30592afe..3c141097 100644
--- a/src/sysv/systemd/sssd.service.in
+++ b/src/sysv/systemd/sssd.service.in
@@ -4,6 +4,7 @@ Description=System Security Services Daemon
After=syslog.target
[Service]
+EnvironmentFile=-@environment_file@
ExecStart=@sbindir@/sssd -D -f
# These two should be used with traditional UNIX forking daemons
# consult systemd.service(5) for more details