Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=RESTCONFish server |
Tomáš Pecka | 04eb737 | 2022-06-07 08:03:04 +0200 | [diff] [blame] | 3 | After=syslog.target network.target cfg-restore-sysrepo.service czechlight-migrate.service nacm-restore.service |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 4 | PartOf=netopeer2.service |
Tomáš Pecka | 04eb737 | 2022-06-07 08:03:04 +0200 | [diff] [blame] | 5 | Requires=cfg-restore-sysrepo.service czechlight-migrate.service nacm-restore.service |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | ExecStart=/usr/bin/rousette |
Tomáš Pecka | d3861ce | 2022-05-11 11:51:30 +0200 | [diff] [blame] | 10 | User=yangnobody |
| 11 | Group=yangnobody |
| 12 | SupplementaryGroups=sysrepo optics |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 13 | PrivateTmp=yes |
| 14 | PrivateDevices=yes |
| 15 | ProtectSystem=yes |
| 16 | ProtectHome=yes |
| 17 | Restart=always |
| 18 | RestartSec=10s |
| 19 | LogRateLimitIntervalSec=10 |
| 20 | LogRateLimitBurst=30000 |
| 21 | SyslogLevel=alert |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 22 | |
| 23 | [Install] |
| 24 | WantedBy=multi-user.target |