| 1 | [Unit] |
| 2 | Description=Pygopherd Server |
| 3 | Wants=network-online.target |
| 4 | After=network-online.target |
| 5 | |
| 6 | [Service] |
| 7 | User=gopher |
| 8 | Group=gopher |
| 9 | ProtectHome=true |
| 10 | ProtectSystem=strict |
| 11 | NoNewPrivileges=true |
| 12 | RuntimeDirectory=pygopherd |
| 13 | ReadWritePaths=/var/run/pygopherd /run/pygopherd /var/gopher |
| 14 | SyslogIdentifier=pygopherd |
| 15 | CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SYS_CHROOT |
| 16 | AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SYS_CHROOT |
| 17 | ExecStart=/usr/sbin/pygopherd |
| 18 | Restart=always |
| 19 | TimeoutStopSec=5 |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |
| 23 |