blob: 4c9418f2228b1d7a4a749074a62cc3bee1e76807 [file] [log] [blame]
Jan Kundrát41d2d262017-10-27 18:29:33 +02001[Unit]
2Description=Persisting persistent sysrepo datastores to /cfg
Jan Kundráte950cf72024-09-06 17:46:11 +02003After=cfg-yang.service
4Requires=cfg-yang.service
Jan Kundrát41d2d262017-10-27 18:29:33 +02005
6[Service]
7Type=simple
Jan Kundrát34d2f482021-01-11 19:24:09 +01008UMask=0077
Jan Kundrát80972db2023-06-05 22:27:16 +02009ExecStartPre=/bin/sh -c 'mkdir -p /cfg/sysrepo/ && cfg-save-sysrepo'
10ExecStart=/bin/sh -c 'while true; do inotifywait -e CLOSE_WRITE /etc/sysrepo/data/*.startup && cfg-save-sysrepo; done'
Tomáš Peckad3861ce2022-05-11 11:51:30 +020011Group=sysrepo
Jan Kundráte8a9fa72024-09-05 17:04:53 +020012
13[Install]
14WantedBy=multi-user.target