blob: d289933953036628f11b7dd465ec4131c1f294da [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
Tomáš Peckad3861ce2022-05-11 11:51:30 +020013Group=sysrepo
Václav Kubernátfe909e42021-03-17 14:11:02 +010014StandardOutput=journal+console
Jan Kundrát34d2f482021-01-11 19:24:09 +010015
16[Install]
17WantedBy=multi-user.target