diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/openrc/nsssd | 6 | ||||
-rw-r--r-- | examples/s6-rc/nsssd-log/consumer-for | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd-log/dependencies | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd-log/run | 5 | ||||
-rw-r--r-- | examples/s6-rc/nsssd-log/type | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/dependencies | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/notification-fd | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/pipeline-name | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/producer-for | 1 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/run | 7 | ||||
-rw-r--r-- | examples/s6-rc/nsssd/type | 1 | ||||
-rwxr-xr-x | examples/s6/nsssd/log/run | 5 | ||||
-rw-r--r-- | examples/s6/nsssd/notification-fd | 1 | ||||
-rwxr-xr-x | examples/s6/nsssd/run | 7 |
14 files changed, 39 insertions, 0 deletions
diff --git a/examples/openrc/nsssd b/examples/openrc/nsssd new file mode 100755 index 0000000..8a0c412 --- /dev/null +++ b/examples/openrc/nsssd @@ -0,0 +1,6 @@ +#!/sbin/openrc-run + +name="nsssd" +command="s6-ipcserver -- /run/service/nsssd/s nsssd-unix" +pidfile="/run/service/nsssd/nsssd.pid" +start_stop_daemon_args="-b -m -c nsssd -d /run/service/nsssd" diff --git a/examples/s6-rc/nsssd-log/consumer-for b/examples/s6-rc/nsssd-log/consumer-for new file mode 100644 index 0000000..e089e8b --- /dev/null +++ b/examples/s6-rc/nsssd-log/consumer-for @@ -0,0 +1 @@ +nsssd diff --git a/examples/s6-rc/nsssd-log/dependencies b/examples/s6-rc/nsssd-log/dependencies new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/examples/s6-rc/nsssd-log/dependencies @@ -0,0 +1 @@ + diff --git a/examples/s6-rc/nsssd-log/run b/examples/s6-rc/nsssd-log/run new file mode 100644 index 0000000..c133770 --- /dev/null +++ b/examples/s6-rc/nsssd-log/run @@ -0,0 +1,5 @@ +#!/bin/execlineb -P + +s6-setuidgid nssslog +exec -c +s6-log t /var/log/nsssd diff --git a/examples/s6-rc/nsssd-log/type b/examples/s6-rc/nsssd-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/examples/s6-rc/nsssd-log/type @@ -0,0 +1 @@ +longrun diff --git a/examples/s6-rc/nsssd/dependencies b/examples/s6-rc/nsssd/dependencies new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/examples/s6-rc/nsssd/dependencies @@ -0,0 +1 @@ + diff --git a/examples/s6-rc/nsssd/notification-fd b/examples/s6-rc/nsssd/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/examples/s6-rc/nsssd/notification-fd @@ -0,0 +1 @@ +3 diff --git a/examples/s6-rc/nsssd/pipeline-name b/examples/s6-rc/nsssd/pipeline-name new file mode 100644 index 0000000..84fdc32 --- /dev/null +++ b/examples/s6-rc/nsssd/pipeline-name @@ -0,0 +1 @@ +nsssd-pipeline diff --git a/examples/s6-rc/nsssd/producer-for b/examples/s6-rc/nsssd/producer-for new file mode 100644 index 0000000..465ee2c --- /dev/null +++ b/examples/s6-rc/nsssd/producer-for @@ -0,0 +1 @@ +nsssd-log diff --git a/examples/s6-rc/nsssd/run b/examples/s6-rc/nsssd/run new file mode 100644 index 0000000..24074c6 --- /dev/null +++ b/examples/s6-rc/nsssd/run @@ -0,0 +1,7 @@ +#!/bin/execlineb -P + +fdmove -c 2 1 +s6-envuidgid nsss +fdmove 1 3 +s6-ipcserver -1 0U -- s +nsssd-unix diff --git a/examples/s6-rc/nsssd/type b/examples/s6-rc/nsssd/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/examples/s6-rc/nsssd/type @@ -0,0 +1 @@ +longrun diff --git a/examples/s6/nsssd/log/run b/examples/s6/nsssd/log/run new file mode 100755 index 0000000..c133770 --- /dev/null +++ b/examples/s6/nsssd/log/run @@ -0,0 +1,5 @@ +#!/bin/execlineb -P + +s6-setuidgid nssslog +exec -c +s6-log t /var/log/nsssd diff --git a/examples/s6/nsssd/notification-fd b/examples/s6/nsssd/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/examples/s6/nsssd/notification-fd @@ -0,0 +1 @@ +3 diff --git a/examples/s6/nsssd/run b/examples/s6/nsssd/run new file mode 100755 index 0000000..626edd4 --- /dev/null +++ b/examples/s6/nsssd/run @@ -0,0 +1,7 @@ +#!/bin/execlineb -P + +fdmove -c 2 1 +s6-envuidgid nsss +fdmove 1 3 +s6-ipcserver -1 -U -- s +nsssd-unix |