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 23:11:59 +0200
commitac2bdb99d3b096610fbfeda9796a7fe5e1715253 (patch)
tree84b823774ee33f59db0d09b0898f0f8b02908c7e /src/sysv/gentoo/sssd.in
parent43b0734dd79820c72a876eb78f0029139008497f (diff)
downloadsssd-ac2bdb99d3b096610fbfeda9796a7fe5e1715253.tar.gz
sssd-ac2bdb99d3b096610fbfeda9796a7fe5e1715253.tar.xz
sssd-ac2bdb99d3b096610fbfeda9796a7fe5e1715253.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 ${?}
+}