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 | e950cf7 | 2024-09-06 17:46:11 +0200 | [diff] [blame^] | 3 | After=cfg-yang.service |
| 4 | Requires=cfg-yang.service |
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 |
Jan Kundrát | 80972db | 2023-06-05 22:27:16 +0200 | [diff] [blame] | 9 | ExecStartPre=/bin/sh -c 'mkdir -p /cfg/sysrepo/ && cfg-save-sysrepo' |
| 10 | ExecStart=/bin/sh -c 'while true; do inotifywait -e CLOSE_WRITE /etc/sysrepo/data/*.startup && cfg-save-sysrepo; done' |
Tomáš Pecka | d3861ce | 2022-05-11 11:51:30 +0200 | [diff] [blame] | 11 | Group=sysrepo |
Jan Kundrát | e8a9fa7 | 2024-09-05 17:04:53 +0200 | [diff] [blame] | 12 | |
| 13 | [Install] |
| 14 | WantedBy=multi-user.target |