commit a464b034f83b716a4ac5a3599787ea5b8e0d1971
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Nov 19 20:25:32 2024 +0100
Add rsyncd.service
roles/rsyncd/files/rsyncd.service | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/roles/rsyncd/files/rsyncd.service b/roles/rsyncd/files/rsyncd.service
new file mode 100644
index 0000000..c027550
--- /dev/null
+++ b/roles/rsyncd/files/rsyncd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=fast remote file copy program daemon
+ConditionPathExists=/etc/rsyncd.conf
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/rsyncd
+ExecStart=/usr/bin/rsync --daemon --no-detach "$OPTIONS"
+#StandardInput=socket
+
+[Install]
+WantedBy=multi-user.target