Jan Kundrát | 34d2f48 | 2021-01-11 19:24:09 +0100 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Restore sysrepo startup datastore from /cfg |
| 3 | After=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount |
| 4 | Requires=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount |
| 5 | Before=netopeer2-setup.service netopeer2.service sysrepo-persistent-cfg.service |
| 6 | ConditionPathExists=/cfg/sysrepo/startup.json |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | ExecStart=/bin/sysrepocfg -d startup -f json --import=/cfg/sysrepo/startup.json |
| 11 | ExecStart=/bin/sysrepocfg -C startup |
| 12 | |
| 13 | [Install] |
| 14 | WantedBy=multi-user.target |