add an example systemd unit file

This commit is contained in:
Omar Polo 2021-07-11 15:44:44 +00:00
parent e2d3a8f222
commit e8b8003098
2 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,12 @@
This directory is for additional contributed files which may be useful.
This directory is for additional contributed files which may be
useful.
gmid.service
Simple systemd service file.
vim
Syntax highlighting of gmid configuration for vim, to be
placed into ~/.vim/ or /usr/share/vim/vimfiles.

14
contrib/gmid.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=The gmid Gemini server
After=syslog.target network.target
Wants=network-online.target
[Service]
Type=forking
ExecStart=/usr/local/bin/gmid -c /etc/gmid.conf
# to start the daemon as a dedicated user:
#User=_gmid
#Group=_gmid
[Install]
WantedBy=multi-user.target