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 |
Jan Kundrát | 8929782 | 2021-01-19 21:48:52 +0100 | [diff] [blame] | 10 | RemainAfterExit=yes |
Jan Kundrát | 34d2f48 | 2021-01-11 19:24:09 +0100 | [diff] [blame] | 11 | ExecStart=/bin/sysrepocfg -d startup -f json --import=/cfg/sysrepo/startup.json |
| 12 | ExecStart=/bin/sysrepocfg -C startup |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=multi-user.target |