summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-09 19:58:12 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-09 19:58:12 +0000
commit6fdb4834cdb5557d9bd7562f61984da8bd0d9c80 (patch)
treec9ac0c6bc512beed2e550b9aba09eb2af090e6a7 /examples
parent1f213b642deb1d8e6139d2b7daac8f639c8717e7 (diff)
downloadnsss-6fdb4834cdb5557d9bd7562f61984da8bd0d9c80.tar.xz
Prepare for 0.2.0.0, lots of changes.
- Make _r functions completely thread-safe. - Save a lot of forking by having a persistent nsss_switch_query - Introduce a timeout to make the server expire - Start writing nsss-switch, not working yet. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/openrc/nsssd2
-rw-r--r--examples/s6-rc/nsssd-log/pipeline-name (renamed from examples/s6-rc/nsssd/pipeline-name)0
-rw-r--r--examples/s6-rc/nsssd/dependencies1
-rw-r--r--examples/s6-rc/nsssd/run4
-rwxr-xr-xexamples/s6/nsssd/run4
5 files changed, 7 insertions, 4 deletions
diff --git a/examples/openrc/nsssd b/examples/openrc/nsssd
index 1221f89..8789f3b 100755
--- a/examples/openrc/nsssd
+++ b/examples/openrc/nsssd
@@ -2,7 +2,7 @@
name="nsssd"
command="s6-envuidgid"
-command_args="nsss s6-ipcserver -U -- /run/service/nsssd/s nsssd-unix"
+command_args="nsss s6-ipcserver -U -- /run/service/nsssd/s nsssd-switch 0 nsssd-nslcd '' 0 nsssd-unix ''"
command_background=yes
pidfile="/run/service/nsssd/nsssd.pid"
start_stop_daemon_args="-d /run/service/nsssd"
diff --git a/examples/s6-rc/nsssd/pipeline-name b/examples/s6-rc/nsssd-log/pipeline-name
index 84fdc32..84fdc32 100644
--- a/examples/s6-rc/nsssd/pipeline-name
+++ b/examples/s6-rc/nsssd-log/pipeline-name
diff --git a/examples/s6-rc/nsssd/dependencies b/examples/s6-rc/nsssd/dependencies
deleted file mode 100644
index 8b13789..0000000
--- a/examples/s6-rc/nsssd/dependencies
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/examples/s6-rc/nsssd/run b/examples/s6-rc/nsssd/run
index 626edd4..458e632 100644
--- a/examples/s6-rc/nsssd/run
+++ b/examples/s6-rc/nsssd/run
@@ -4,4 +4,6 @@ fdmove -c 2 1
s6-envuidgid nsss
fdmove 1 3
s6-ipcserver -1 -U -- s
-nsssd-unix
+nsssd-switch
+ 0 { nsssd-nslcd }
+ 0 { nsssd-unix }
diff --git a/examples/s6/nsssd/run b/examples/s6/nsssd/run
index 626edd4..458e632 100755
--- a/examples/s6/nsssd/run
+++ b/examples/s6/nsssd/run
@@ -4,4 +4,6 @@ fdmove -c 2 1
s6-envuidgid nsss
fdmove 1 3
s6-ipcserver -1 -U -- s
-nsssd-unix
+nsssd-switch
+ 0 { nsssd-nslcd }
+ 0 { nsssd-unix }