blob: 007bd7b9f3a6e27ba139981fef7b8c3e80817100 [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'
Tomáš Peckad3861ce2022-05-11 11:51:30 +020010Group=sysrepo