blob: 9e30f39831abc93b9c3a4cb64a1d155500427d75 [file] [log] [blame]
Tomáš Pecka25aae682021-01-27 14:45:57 +01001[Unit]
2Description=Tracking hardware metrics
3After=syslog.target network.target czechlight-install-yang.service cfg-restore-sysrepo.service
4Before=rauc-mark-good.service
5PartOf=netopeer2.service
6Requires=czechlight-install-yang.service cfg-restore-sysrepo.service
Jan Kundrát811c0b02021-02-05 19:16:43 +01007ConditionKernelCommandLine=|czechlight=sdn-inline-g2
8ConditionKernelCommandLine=|czechlight=sdn-roadm-add-drop-g2
9ConditionKernelCommandLine=|czechlight=sdn-roadm-coherent-a-d-g2
10ConditionKernelCommandLine=|czechlight=sdn-roadm-line-g2
11ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2
Tomáš Pecka25aae682021-01-27 14:45:57 +010012
13[Service]
14Type=simple
Jan Kundrát811c0b02021-02-05 19:16:43 +010015ExecStart=/usr/bin/veliad-hardware --log-level=4 --appliance=czechlight-clearfog-g2
Tomáš Pecka25aae682021-01-27 14:45:57 +010016PrivateTmp=yes
17PrivateDevices=no
18ProtectSystem=yes
19ProtectHome=yes
20Restart=always
21RestartSec=10s
22LogRateLimitIntervalSec=10
23LogRateLimitBurst=30000
24SyslogLevel=alert
25
26[Install]
27WantedBy=multi-user.target