diff --git a/install/tiny-gopherd.service b/install/tiny-gopherd.service new file mode 100644 index 0000000..6704149 --- /dev/null +++ b/install/tiny-gopherd.service @@ -0,0 +1,14 @@ +[Unit] +Description=Tiny gopher daemon +After=network.target +StartLimitIntervalSec=0 + +[Service] +Type=simple +Restart=always +RestartSec=1 +User=www-data +ExecStart=/usr/bin/env lua /var/www//gopherd.lua /etc/tiny-gopherd.cfg + +[Install] +WantedBy=multi-user.target