Switch to s6-overlay, add cron (and cronjobs), syslog.
ci/woodpecker/tag/build Pipeline was successful

This commit is contained in:
2026-07-27 00:18:03 +05:00
parent 6bb4e56607
commit 4346acb651
19 changed files with 79 additions and 25 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh -e
mkdir -p /var/log/innd
chown -R 65534:65534 /var/log/innd
chmod 02755 /var/log/innd
mkdir -p /var/log/nnrpd
chown -R 65534:65534 /var/log/nnrpd
chmod 02755 /var/log/nnrpd
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -f "/inn2/etc/inn.conf" ]; then
cp -r /inn2/etc-default/* /inn2/etc
fi
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -f "/inn2/db/history" ]; then
cp -r /inn2/db-default/* /inn2/db
fi
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -d "/inn2/spool/articles" ]; then
cp -r /inn2/spool-default/* /inn2/spool
fi
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
chown news:news /etc/crontabs/news
+5
View File
@@ -0,0 +1,5 @@
# min hour day month weekday command
0 5 * * * cd /inn2; /inn2/bin/news.daily expireover lowmark delayrm
15 * * * * cd /inn2; /inn2/bin/rnews -U
0 4 * * * cd /inn2; /inn2/bin/ctlinnd -t 120 -s reload incoming.conf 'flush cache'
*/10 * * * * cd /inn2; /inn2/bin/nntpsend
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
/usr/sbin/crond -f
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec logutil-service /var/log/innd
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec s6-setuidgid news /inn2/bin/innd -f
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec logutil-service /var/log/nnrpd
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec s6-setuidgid news nnrpd -D -f -p 563 -S