Jan Kundrát | 41d2d26 | 2017-10-27 18:29:33 +0200 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Persisting persistent sysrepo datastores to /cfg |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 3 | After=netopeer2.service cfg.mount |
| 4 | Requires=netopeer2.service cfg.mount |
Jan Kundrát | 41d2d26 | 2017-10-27 18:29:33 +0200 | [diff] [blame] | 5 | |
| 6 | [Service] |
| 7 | Type=simple |
Jan Kundrát | 34d2f48 | 2021-01-11 19:24:09 +0100 | [diff] [blame] | 8 | UMask=0077 |
| 9 | ExecStart=/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áš Pecka | d3861ce | 2022-05-11 11:51:30 +0200 | [diff] [blame] | 10 | Group=sysrepo |