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 |
Václav Kubernát | fe909e4 | 2021-03-17 14:11:02 +0100 | [diff] [blame] | 13 | StandardOutput=journal+console |
Jan Kundrát | 34d2f48 | 2021-01-11 19:24:09 +0100 | [diff] [blame] | 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |