blob: 60cdac864c4db53d032e9068bb5b7b5a0d3c83a3 (
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
|
[Unit]
Description=Network Time Service (ntpd-rs) metrics exporter
Documentation=https://github.com/pendulum-project/ntpd-rs
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=yes
Restart=on-failure
RestartSec=2
ExecStartPre=/usr/bin/ntp-ctl --config /etc/ntpd-rs/ntp.toml validate
ExecStart=/usr/bin/ntp-metrics-exporter --config /etc/ntpd-rs/ntp.toml
Environment="RUST_LOG=info"
NoNewPrivileges=yes
PrivateDevices=yes
ProtectHome=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
ProtectProc=invisible
ProtectControlGroups=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target
|