blob: c990d56bdc991fffcb7e29bb843972ab0814824d [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
10ExecStart=/bin/sysrepocfg -d startup -f json --import=/cfg/sysrepo/startup.json
11ExecStart=/bin/sysrepocfg -C startup
12
13[Install]
14WantedBy=multi-user.target