summaryrefslogtreecommitdiff
path: root/examples/syslogd-linux
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-18 18:46:40 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-18 18:46:40 +0000
commit678508409a92f80cacd94a70e1e51ca4a389435a (patch)
tree8dc9502d1a8d6785d2ba14afe808a7b52942167a /examples/syslogd-linux
parent0fbc13bdc5bf68c6ff44bca7d0f6db02ae045ba5 (diff)
downloads6-678508409a92f80cacd94a70e1e51ca4a389435a.tar.xz
Add s6-socklog
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/syslogd-linux')
-rw-r--r--examples/syslogd-linux/README9
-rw-r--r--examples/syslogd-linux/log/README9
-rw-r--r--examples/syslogd-linux/log/env/LOGSCRIPT6
-rw-r--r--examples/syslogd-linux/log/notification-fd1
-rwxr-xr-xexamples/syslogd-linux/log/run8
-rw-r--r--examples/syslogd-linux/notification-fd1
-rwxr-xr-xexamples/syslogd-linux/run8
7 files changed, 0 insertions, 42 deletions
diff --git a/examples/syslogd-linux/README b/examples/syslogd-linux/README
deleted file mode 100644
index 675715b..0000000
--- a/examples/syslogd-linux/README
+++ /dev/null
@@ -1,9 +0,0 @@
-This is an example of a service directory for process supervision by s6.
-
-This syslogd emulation works on any Unix where syslog() is
-implemented via a connection on the /dev/log Unix-domain socket.
-It needs a Unix superserver (see s6-networking, ucspi-unix or
-ucspi-ipc) and ucspilogd.
-A ucspilogd process is spawned for every syslog() client. It
-processes logs and sends them to stderr, i.e. the service's
-logger.
diff --git a/examples/syslogd-linux/log/README b/examples/syslogd-linux/log/README
deleted file mode 100644
index 9d4968e..0000000
--- a/examples/syslogd-linux/log/README
+++ /dev/null
@@ -1,9 +0,0 @@
- This logger service logs everything the syslogd service receives
-into subdirectories of /var/log/syslogd/ logdir.
-
- The script provided in env/LOGSCRIPT emulates the default
-syslogd behaviour on a majority of Linux distributions.
-
- Note that spaces cannot be used as is in the LOGSCRIPT file,
-because they are delimiters for the splitting of $LOGSCRIPT
-in the run script. So \s is used instead.
diff --git a/examples/syslogd-linux/log/env/LOGSCRIPT b/examples/syslogd-linux/log/env/LOGSCRIPT
deleted file mode 100644
index e7a1eb7..0000000
--- a/examples/syslogd-linux/log/env/LOGSCRIPT
+++ /dev/null
@@ -1,6 +0,0 @@
-- +^[0-9]+:\s[0-9]+:\serror\. t /var/log/syslogd/error
-- +^[0-9]+:\s[0-9]+:\sauthpriv\. t /var/log/syslogd/auth
-- +^[0-9]+:\s[0-9]+:\suser\. t /var/log/syslogd/user
-- +^[0-9]+:\s[0-9]+:\smessages\. t /var/log/syslogd/messages
-- +^[0-9]+:\s[0-9]+:\sdaemon\. t /var/log/syslogd/daemon
-f t /var/log/syslogd/misc
diff --git a/examples/syslogd-linux/log/notification-fd b/examples/syslogd-linux/log/notification-fd
deleted file mode 100644
index 00750ed..0000000
--- a/examples/syslogd-linux/log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/examples/syslogd-linux/log/run b/examples/syslogd-linux/log/run
deleted file mode 100755
index fcb667c..0000000
--- a/examples/syslogd-linux/log/run
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/command/execlineb -P
-s6-setuidgid syslog
-s6-envdir -f env
-importas -Cs LOGSCRIPT LOGSCRIPT
-exec -c
-s6-log -d3 -- $LOGSCRIPT
-
-# Change env/LOGSCRIPT to alter s6-log's behaviour
diff --git a/examples/syslogd-linux/notification-fd b/examples/syslogd-linux/notification-fd
deleted file mode 100644
index 00750ed..0000000
--- a/examples/syslogd-linux/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/examples/syslogd-linux/run b/examples/syslogd-linux/run
deleted file mode 100755
index de33c2c..0000000
--- a/examples/syslogd-linux/run
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/command/execlineb -P
-fdmove -c 2 1
-exec -c
-s6-envuidgid nobody
-fdmove 1 3
-s6-ipcserver -U -1 -- /dev/log
-fdmove -c 1 2
-ucspilogd IPCREMOTEEUID IPCREMOTEEGID