blob: 8a58eab4eb58e2204dc886bf6b08575a84b4c789 [file] [log] [blame]
Tomáš Pecka25aae682021-01-27 14:45:57 +01001[Unit]
2Description=Tracking hardware metrics
Tomáš Pecka04eb7372022-06-07 08:03:04 +02003After=syslog.target network.target cfg-restore-sysrepo.service czechlight-migrate.service nacm-restore.service
Tomáš Pecka25aae682021-01-27 14:45:57 +01004Before=rauc-mark-good.service
5PartOf=netopeer2.service
Tomáš Pecka04eb7372022-06-07 08:03:04 +02006Requires=cfg-restore-sysrepo.service czechlight-migrate.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áš Peckad3861ce2022-05-11 11:51:30 +020016Group=sysrepo
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