blob: c39c3f8f1b81329b69a5864f8bde7920c28a6bf8 [file] [log] [blame]
Tomáš Pecka25aae682021-01-27 14:45:57 +01001[Unit]
2Description=Tracking hardware metrics
Václav Kubernáte6ecb9b2021-02-09 20:53:44 +01003After=syslog.target network.target czechlight-install-yang.service cfg-restore-sysrepo.service nacm-restore.service
Tomáš Pecka25aae682021-01-27 14:45:57 +01004Before=rauc-mark-good.service
5PartOf=netopeer2.service
Václav Kubernáte6ecb9b2021-02-09 20:53:44 +01006Requires=czechlight-install-yang.service cfg-restore-sysrepo.service nacm-restore.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
Jan Kundrátf25a84f2021-03-21 13:18:47 +010010ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2
Jan Kundrát811c0b02021-02-05 19:16:43 +010011ConditionKernelCommandLine=|czechlight=sdn-roadm-line-g2
Tomáš Pecka25aae682021-01-27 14:45:57 +010012
13[Service]
14Type=simple
Václav Kubernát0dde5042021-02-12 11:09:46 +010015ExecStart=/usr/bin/veliad-hardware --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