Add a systemd unit file + default with flags
This commit is contained in:
20
ctlog-uptime-exporter.service
Normal file
20
ctlog-uptime-exporter.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=CT Log Uptime Prometheus Exporter
|
||||
Documentation=https://git.ipng.ch/certificate-transparency/ctlog-uptime-exporter
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/ctlog-uptime-exporter
|
||||
ExecStart=/usr/local/bin/ctlog-uptime-exporter $ARGS
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
DynamicUser=yes
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
CapabilityBoundingSet=
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user