Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Install YANG and initial data for __MODEL__ |
| 3 | Requires=sysrepod.service |
| 4 | ConditionKernelCommandLine=czechlight=__MODEL__ |
| 5 | ConditionPathExistsGlob=!/etc/sysrepo/yang/__YANG__@*.yang |
| 6 | Before=sysrepod.service |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/cla-sysrepo/yang/__YANG__.yang |
| 11 | ExecStart=/usr/bin/sysrepoctl --module __YANG__ --feature-enable __FEATURE__ |
| 12 | ExecStart=/usr/bin/sysrepocfg --datastore=startup --import=/usr/share/cla-sysrepo/yang/__MODEL__.json __YANG__ |
Jan Kundrát | d31efeb | 2019-10-08 00:08:49 +0200 | [diff] [blame] | 13 | ExecStart=/bin/cp -a /etc/sysrepo /cfg/etc/ |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |