blob: dd93e42209c547659e3cc341c24826568ec252ca (
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
|
[Unit]
Description=prometheus-junos-exporter
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/prometheus-junos-exporter \
-config.file=/etc/prometheus-junos-exporter/config.yml \
-ssh.user=${SSH_USER} \
-ssh.keyfile=${SSH_KEYFILE} \
-config.ignore-targets=${IGNORE_TARGETS}
EnvironmentFile=-/etc/conf.d/prometheus-junos-exporter
ProtectSystem=strict
PrivateDevices=yes
ProtectControlGroups=yes
ProtectKernelTunables=yes
ProtectHome=tmpfs
TemporaryFileSystem=/:ro
BindReadOnlyPaths=/etc/prometheus-junos-exporter
[Install]
WantedBy=multi-user.service
# vim: ft=systemd
|