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