Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=RESTCONFish server |
Tomáš Pecka | b31a089 | 2023-07-19 11:12:29 +0200 | [diff] [blame] | 3 | After=syslog.target network.target cfg-restore-sysrepo.service czechlight-migrate.service |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 4 | PartOf=netopeer2.service |
Tomáš Pecka | b31a089 | 2023-07-19 11:12:29 +0200 | [diff] [blame] | 5 | Requires=cfg-restore-sysrepo.service czechlight-migrate.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 | SupplementaryGroups=sysrepo optics |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 11 | PrivateTmp=yes |
| 12 | PrivateDevices=yes |
| 13 | ProtectSystem=yes |
| 14 | ProtectHome=yes |
| 15 | Restart=always |
| 16 | RestartSec=10s |
| 17 | LogRateLimitIntervalSec=10 |
| 18 | LogRateLimitBurst=30000 |
| 19 | SyslogLevel=alert |
Jan Kundrát | b41f008 | 2021-03-09 22:20:35 +0100 | [diff] [blame] | 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |