summaryrefslogtreecommitdiff
path: root/roles/monitoring/sachet/templates/sachet.service.j2
blob: 9f87c39de5bfef20b9d94f1e43dcca4bf7a0c294 (plain) (blame)
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
[Unit]
Description=Sachet SMS Daemon for Prometheus Alertmanager

[Service]
Restart=always
User=sachet
ExecStart=/usr/bin/sachet -config /etc/sachet.yml -listen-address {{ sachet_listen }}

# systemd hardening-options
AmbientCapabilities=
CapabilityBoundingSet=
DeviceAllow=/dev/null rw
DevicePolicy=strict
LimitMEMLOCK=0
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
{% if 'smstools' in sachet_providers %}
ReadWritePaths={{ sachet_providers.smstools.outgoing_dir }}
{% endif %}
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target