blob: 432eb31a932197557eb8975ab06210142777dbc3 [file] [log] [blame]
Tomáš Pecka25aae682021-01-27 14:45:57 +01001[Unit]
2Description=Tracking hardware metrics
Jan Kundráte950cf72024-09-06 17:46:11 +02003After=syslog.target network.target cfg-yang.service
Tomáš Pecka25aae682021-01-27 14:45:57 +01004Before=rauc-mark-good.service
Jan Kundráte950cf72024-09-06 17:46:11 +02005Requires=cfg-yang.service
Jan Kundrát811c0b02021-02-05 19:16:43 +01006ConditionKernelCommandLine=|czechlight=sdn-inline-g2
7ConditionKernelCommandLine=|czechlight=sdn-roadm-add-drop-g2
8ConditionKernelCommandLine=|czechlight=sdn-roadm-coherent-a-d-g2
Jan Kundrátf25a84f2021-03-21 13:18:47 +01009ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2
Jan Kundrát811c0b02021-02-05 19:16:43 +010010ConditionKernelCommandLine=|czechlight=sdn-roadm-line-g2
Jan Kundrát6b606292024-05-07 21:01:50 +020011ConditionKernelCommandLine=|czechlight=sdn-bidi-cplus1572-g2
12ConditionKernelCommandLine=|czechlight=sdn-bidi-cplus1572-ocm-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áš Peckad3861ce2022-05-11 11:51:30 +020017Group=sysrepo
Tomáš Pecka25aae682021-01-27 14:45:57 +010018PrivateTmp=yes
19PrivateDevices=no
20ProtectSystem=yes
21ProtectHome=yes
22Restart=always
23RestartSec=10s
24LogRateLimitIntervalSec=10
25LogRateLimitBurst=30000
26SyslogLevel=alert
27
28[Install]
29WantedBy=multi-user.target