blob: b01a7a17df88efdbf13f038e2c27f686020cc430 [file] [log] [blame]
Jan Kundrát2ccae182018-09-13 21:24:38 +02001[Unit]
2Description=CzechLight __MODEL__ driver
Tomáš Pecka04eb7372022-06-07 08:03:04 +02003After=syslog.target network.target cfg-restore-sysrepo.service czechlight-migrate.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
Tomáš Pecka04eb7372022-06-07 08:03:04 +02006Requires=cfg-restore-sysrepo.service czechlight-migrate.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