summaryrefslogtreecommitdiffstats
path: root/src/sysv/gentoo
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
commit74aa0bc6779af38018a03fd2cf4419fe85917904 (patch)
tree9cb0681aac9a94a49c153d5823e7a55d1513d91f /src/sysv/gentoo
parentInitial commit. (diff)
downloadsssd-74aa0bc6779af38018a03fd2cf4419fe85917904.tar.xz
sssd-74aa0bc6779af38018a03fd2cf4419fe85917904.zip
Adding upstream version 2.9.4.upstream/2.9.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/sysv/gentoo')
-rw-r--r--src/sysv/gentoo/sssd-kcm.in21
-rw-r--r--src/sysv/gentoo/sssd.in31
2 files changed, 52 insertions, 0 deletions
diff --git a/src/sysv/gentoo/sssd-kcm.in b/src/sysv/gentoo/sssd-kcm.in
new file mode 100644
index 0000000..c9242bf
--- /dev/null
+++ b/src/sysv/gentoo/sssd-kcm.in
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v3
+
+description="SSSD Kerberos Cache Manager"
+command="@libexecdir@/sssd/sssd_kcm"
+command_background="true"
+command_args="--uid=0 --gid=0 --logger=files ${SSSD_KCM_OPTIONS}"
+pidfile="@pidpath@/sssd_kcm.pid"
+
+start_pre()
+{
+ "@sbindir@/sssd" --genconf-section=kcm || return $?
+}
+
+depend()
+{
+ need localmount clock
+ use syslog
+ before sssd
+}
diff --git a/src/sysv/gentoo/sssd.in b/src/sysv/gentoo/sssd.in
new file mode 100644
index 0000000..2268786
--- /dev/null
+++ b/src/sysv/gentoo/sssd.in
@@ -0,0 +1,31 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v3
+
+
+command="@sbindir@/sssd"
+command_args="-D --logger=files ${SSSD_OPTIONS}"
+description="System Security Services Daemon"
+pidfile="@pidpath@/sssd.pid"
+#sssd may take time time to TERMinate so allow som extra time
+retry="TERM/60"
+extra_started_commands="rotate online offline"
+
+depend(){
+ need localmount clock
+ use syslog
+ before xdm
+}
+
+do_sig() {
+ local sig=$1 ; shift
+ ebegin "$*"
+ start-stop-daemon --signal ${sig} --pidfile ${pidfile}
+ eend $?
+}
+
+rotate() { do_sig HUP "Sends sssd a signal to re-open its log files." ; }
+
+offline() { do_sig USR1 "Simulate offline" ; }
+
+online() { do_sig USR2 "Simulate online" ; }