| 1 |
[Unit] |
| 2 |
Description=Hitch TLS unwrapping daemon |
| 3 |
After=network.target |
| 4 |
Documentation=https://github.com/varnish/hitch/tree/master/docs man:hitch(8) |
| 5 |
ConditionPathExists=/etc/hitch/hitch.conf |
| 6 |
|
| 7 |
[Service] |
| 8 |
ExecStart=/usr/sbin/hitch --user _hitch --group _hitch --config /etc/hitch/hitch.conf |
| 9 |
ExecReload=/bin/kill -HUP $MAINPID |
| 10 |
Type=exec |
| 11 |
Restart=on-failure |
| 12 |
LimitNOFILE=131072 |
| 13 |
ConfigurationDirectory=hitch |
| 14 |
ReadWritePaths=-/var/lib/hitch |
| 15 |
PrivateDevices=yes |
| 16 |
PrivateTmp=yes |
| 17 |
ProtectClock=yes |
| 18 |
ProtectControlGroups=yes |
| 19 |
ProtectHome=yes |
| 20 |
ProtectHostname=yes |
| 21 |
ProtectKernelLogs=yes |
| 22 |
ProtectKernelModules=yes |
| 23 |
ProtectKernelTunables=yes |
| 24 |
ProtectSystem=strict |
| 25 |
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX |
| 26 |
RestrictNamespaces=yes |
| 27 |
RestrictRealtime=yes |
| 28 |
RestrictSUIDSGID=yes |
| 29 |
LockPersonality=yes |
| 30 |
MemoryDenyWriteExecute=yes |
| 31 |
NoNewPrivileges=yes |
| 32 |
SystemCallArchitectures=native |
| 33 |
SystemCallErrorNumber=EPERM |
| 34 |
SystemCallFilter=@system-service |
| 35 |
|
| 36 |
[Install] |
| 37 |
WantedBy=multi-user.target |