## **************************************************************************
## For copyright and licensing terms, see the file named COPYING.
## **************************************************************************

[Unit]
Description=GOPHER service over IP4/IP6 using djbwares' gopherd
Description=NOTE: djbwares' gopherd supports GOPHER over both IPv4 and IPv6 without patches.

[Service]
User=publicfile
SessionLeader=yes
EnvironmentUserOnly=true
EnvironmentDirectory=env
LimitNOFILE=8
LimitDATA=5000000
ExecStart=${localhost:+setenv ${PROTO:-TCP}LOCALHOST "${localhost}"} sh -c 'exec gopherd ~publicfile/public'

[Install]
WantedBy=server.target
