blob: 0c961e5a2bd1b2068d604ebc451db0c757389c36 [file] [log] [blame]
[Unit]
Description=Persisting persistent sysrepo datastores to /cfg
After=netopeer2.service cfg.mount czechlight-migrate.service
Requires=netopeer2.service cfg.mount czechlight-migrate.service
[Service]
Type=simple
UMask=0077
ExecStartPre=/bin/sh -c 'mkdir -p /cfg/sysrepo/ && cfg-save-sysrepo'
ExecStart=/bin/sh -c 'while true; do inotifywait -e CLOSE_WRITE /etc/sysrepo/data/*.startup && cfg-save-sysrepo; done'
Group=sysrepo