blob: b3ef5b050f704d425f2ab26b565aaed857f1e83f [file] [log] [blame]
Jan Kundrát2ccae182018-09-13 21:24:38 +02001[Unit]
2Description=CzechLight __MODEL__ driver
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
Jan Kundrát811c0b02021-02-05 19:16:43 +01004Before=rauc-mark-good.service velia-hardware-g1.service velia-hardware-g2.service
Jan Kundrát2f100fc2020-11-02 22:10:16 +01005PartOf=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át2ccae182018-09-13 21:24:38 +02007StartLimitIntervalSec=0
Jan Kundrát811c0b02021-02-05 19:16:43 +01008ConditionKernelCommandLine=|czechlight=__MODEL__
9ConditionKernelCommandLine=|czechlight=__MODEL__-g2
Jan Kundrát2ccae182018-09-13 21:24:38 +020010
11[Service]
Jan Kundrát2f100fc2020-11-02 22:10:16 +010012Type=notify
Jan Kundrát58ac4ee2019-12-18 16:59:24 +010013ExecStart=/usr/bin/cla-sysrepod --io-log-level=5 --properties-log-level=5 --sr-bridge-log-level=5 --sysrepo-log-level=3 --appliance=__MODEL__
Tomáš Peckad3861ce2022-05-11 11:51:30 +020014Group=sysrepo
Jan Kundrát2ccae182018-09-13 21:24:38 +020015PrivateTmp=yes
16PrivateDevices=no
17ProtectSystem=yes
18ProtectHome=yes
19Restart=on-abnormal
20SystemCallArchitectures=native
21Restart=always
22WatchdogSec=15s
Jan Kundrátb7181a32019-10-31 12:40:23 +010023LogRateLimitIntervalSec=10
24LogRateLimitBurst=30000
25SyslogLevel=alert
Jan Kundrát2ccae182018-09-13 21:24:38 +020026
27[Install]
28WantedBy=multi-user.target
Jan Kundrát811c0b02021-02-05 19:16:43 +010029RequiredBy=velia-hardware-g1.service velia-hardware-g2.service