summarylogtreecommitdiffstats
path: root/charge-lnd@.service
blob: d78abb47155056f6a2e67d1c9871c89be90da65b (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Unit]
Description=Manage fees on lnd channels with %i
Documentation=https://github.com/accumulator/charge-lnd/blob/master/README.md
ConditionPathExists=/etc/default/charge-lnd-%i

[Service]
Type=oneshot
EnvironmentFile=/etc/default/charge-lnd-%i
ExecStart=/usr/bin/charge-lnd \
    --lnddir $LNDDIR \
    --grpc $GRPC \
    --config $CONFIG \
    $FLAGS

User=charge-lnd
Group=charge-lnd

# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Sandboxing
CapabilityBoundingSet=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~add_key clone3 get_mempolicy kcmp keyctl mbind move_pages name_to_handle_at personality process_vm_readv process_vm_writev request_key set_mempolicy setns unshare userfaultfd