Be a little more explicit with override info.
[rsync.git] / packaging / systemd / rsync.service
1 [Unit]
2 Description=fast remote file copy program daemon
3 ConditionPathExists=/etc/rsyncd.conf
4 After=network.target
5
6 [Service]
7 ExecStart=/usr/bin/rsync --daemon --no-detach
8 RestartSec=1
9
10 # Citing README.md:
11 #
12 #   [...] Using ssh is recommended for its security features.
13 #
14 #   Alternatively, rsync can run in `daemon' mode, listening on a socket.
15 #   This is generally used for public file distribution, [...]
16 #
17 # So let's assume some extra security is more than welcome here. We do full
18 # system protection (which makes it read-only) and hide users' homes and
19 # devices. To override these defaults, it's best to do so in the drop-in
20 # directory, often done via `systemctl edit rsync.service`. The file needs
21 # just the bare minimum of the right [heading] and override values.
22 # See systemd.unit(5) and search for "drop-in" for full details.
23
24 ProtectSystem=full
25 ProtectHome=on
26 PrivateDevices=on
27 NoNewPrivileges=on
28
29 [Install]
30 WantedBy=multi-user.target