summaryrefslogtreecommitdiffstats
path: root/src/sysv/gentoo/sssd.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2013-06-20 10:12:00 -0400
committerJakub Hrozek <jhrozek@redhat.com>2013-08-08 22:34:43 +0200
commit60d3b256f3676b8202d6472fac57be5692df5cdc (patch)
tree31a37d8e0e28845c3dba38d99f43fb1d27eab947 /src/sysv/gentoo/sssd.in
parent4a3ad2fa75904f342004b0067742bb778bf5b170 (diff)
downloadsssd-60d3b256f3676b8202d6472fac57be5692df5cdc.tar.gz
sssd-60d3b256f3676b8202d6472fac57be5692df5cdc.tar.xz
sssd-60d3b256f3676b8202d6472fac57be5692df5cdc.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/sysv/gentoo/sssd.in')
-rw-r--r--src/sysv/gentoo/sssd.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sysv/gentoo/sssd.in b/src/sysv/gentoo/sssd.in
new file mode 100644
index 000000000..8007b644a
--- /dev/null
+++ b/src/sysv/gentoo/sssd.in
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend(){
+ need localmount netmount clock
+ use syslog
+}
+
+start(){
+ ebegin "Starting sssd"
+ start-stop-daemon --start --exec @sbindir@/sssd -- -D
+ eend ${?}
+}
+
+stop(){
+ ebegin "Stopping sssd"
+ start-stop-daemon --stop --pidfile @localstatedir@/run/sssd.pid
+ eend ${?}
+}