]> Sergey Matveev's repositories - godlighty.git/commitdiff
Example daemontools run scripts
authorSergey Matveev <stargrave@stargrave.org>
Mon, 4 Oct 2021 14:22:33 +0000 (17:22 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 4 Oct 2021 14:22:33 +0000 (17:22 +0300)
contrib/service/log/run [new file with mode: 0755]
contrib/service/run [new file with mode: 0755]

diff --git a/contrib/service/log/run b/contrib/service/log/run
new file mode 100755 (executable)
index 0000000..7ef96ec
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+exec setuidgid lighttpd multilog t s999999 n100 "!zstd" wzst \
+    -"*URL query contains semicolon*" ./main
diff --git a/contrib/service/run b/contrib/service/run
new file mode 100755 (executable)
index 0000000..b8778fa
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+uid=`id -u lighttpd`
+gid=`id -g lighttpd`
+gid_git=`id -g git`
+gid_mlmmj=`id -g mlmmj`
+exec /home/lighttpd/godlighty -bind "[::]:443" -tls \
+        -setuid $uid -setgid $gid -setgids $gid,$gid_git,$gid_mlmmj