blob: 811ae77bbfd46200c00c9b53e758fdbf7bfc307d [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
12ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2
Tomáš Pecka25aae682021-01-27 14:45:57 +010013
14[Service]
15Type=simple
Václav Kubernát0dde5042021-02-12 11:09:46 +010016ExecStart=/usr/bin/veliad-hardware --appliance=czechlight-clearfog-g2
Tomáš Pecka25aae682021-01-27 14:45:57 +010017PrivateTmp=yes
18PrivateDevices=no
19ProtectSystem=yes
20ProtectHome=yes
21Restart=always
22RestartSec=10s
23LogRateLimitIntervalSec=10
24LogRateLimitBurst=30000
25SyslogLevel=alert
26
27[Install]
28WantedBy=multi-user.target