blob: 8f2642ccfb6ee507deb90d226d5f0f1de40308a0 [file] [log] [blame]
Jan Kundrát41d2d262017-10-27 18:29:33 +02001[Unit]
2Description=Persisting persistent sysrepo datastores to /cfg
Jan Kundrát2f100fc2020-11-02 22:10:16 +01003After=netopeer2.service cfg.mount
4Requires=netopeer2.service cfg.mount
Jan Kundrát41d2d262017-10-27 18:29:33 +02005
6[Service]
7Type=simple
Jan Kundrát34d2f482021-01-11 19:24:09 +01008UMask=0077
9ExecStart=/bin/sh -c 'while true; do inotifywait -e CLOSE_WRITE /etc/sysrepo/data/*.startup && mkdir -p /cfg/sysrepo/ && sysrepocfg -d startup -f json -X > /cfg/sysrepo/startup.json; done'