blob: 9fe0c8af6f332683fb547357c91d3fcdb39f10b5 [file] [log] [blame]
Jan Kundrát34d2f482021-01-11 19:24:09 +01001[Unit]
2Description=Restore sysrepo startup datastore from /cfg
3After=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount
4Requires=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount
5Before=netopeer2-setup.service netopeer2.service sysrepo-persistent-cfg.service
6ConditionPathExists=/cfg/sysrepo/startup.json
7
8[Service]
9Type=oneshot
Jan Kundrát89297822021-01-19 21:48:52 +010010RemainAfterExit=yes
Jan Kundrát34d2f482021-01-11 19:24:09 +010011ExecStart=/bin/sysrepocfg -d startup -f json --import=/cfg/sysrepo/startup.json
12ExecStart=/bin/sysrepocfg -C startup
13
14[Install]
15WantedBy=multi-user.target