Browse Source

added an example systemd service

master
XeonSquared 5 years ago
parent
commit
d79488d48a
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      install/tiny-gopherd.service

+ 14
- 0
install/tiny-gopherd.service View File

@@ -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

Loading…
Cancel
Save