blob: cac0f646311e1d27e7332377b9b665d5fccfd45e [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
Václav Kubernátfe909e42021-03-17 14:11:02 +010013StandardOutput=journal+console
Jan Kundrát34d2f482021-01-11 19:24:09 +010014
15[Install]
16WantedBy=multi-user.target