summarylogtreecommitdiffstats
path: root/lsyncd.service
blob: 2f8382272e0a73c01665a158a2fa0a20c5fe7b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=synchronization daemon

[Service]
Type=simple
User=lsyncd
Group=lsyncd
Restart=always
ExecStart=/usr/bin/lsyncd -nodaemon /etc/lsyncd/lsyncd.conf.lua
ExecReload=/bin/kill -HUP $MAINPID

# Hardening
PrivateTmp=true
# ProtectHome=true
ProtectSystem=full
NoNewPrivileges=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
# RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target