commit 17f46670fb74ad17ba872b6ec88aca3af97dad18
parent f9d071a4c5870d42d00d0ca496efac527388e6f4
Author: ccx <ccx@te2000.cz>
Date: Fri, 14 Feb 2025 14:33:31 +0000
Add local rsyncd service
Diffstat:
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/postinstall.aat b/postinstall.aat
@@ -66,6 +66,7 @@
/etc/group +
|line_append_file("sshd:x", ":22:", "", "^[^:]*:[^:]*", ".*")
|line_append_file("dhcpcd:x", ":546:", "", "^[^:]*:[^:]*", ".*")
+|line_append_file("rsyncd:x", ":873:", "", "^[^:]*:[^:]*", ".*")
|line_append_file("ccx:x", ":1000:", "", "^[^:]*:[^:]*", ".*")
# Groups for /dev permissions (mdevd.conf): disk, input, uucp
|line_append_file("disk:x", ":6:", "root,adm", "^[^:]*:[^:]*", ".*")
@@ -85,6 +86,9 @@
|passwd_user("sshd:x:22:22:sshd:/dev/null:/sbin/nologin")
|shadow_user("sshd:!::0:::::")
+|passwd_user("rsyncd:x:873:873:rsyncd:/var/empty:/sbin/nologin")
+|shadow_user("rsyncd:!::0:::::")
+
|passwd_user("dhcpcd:x:546:546:dhcpcd:/home/dhcpcd:/sbin/nologin")
|shadow_user("dhcpcd:!::0:::::")
diff --git a/s6-rc.aat b/s6-rc.aat
@@ -330,6 +330,17 @@
@endfor
|}
+|start_longrun_with_logger("rsyncd", "loopback\nok-mount")
+|run_el()
+ /usr/sbin/rsync
+ --daemon
+ --no-detach
+ --log-file=/dev/stdout
+ --address=127.0.0.1
+ --port=873
+ --config=/etc/rsyncd.conf
+|end()
+
|start_longrun_with_logger("wpa_supplicant", "modules\nok-sysinit")
|#enabled_bundle("net-all")
|run_el()