agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

gemini.service (852B)


      1 # This file is part of the Agate software and licensed under either the
      2 # MIT license or Apache license at your option.
      3 #
      4 # Please keep in mind that there is no warranty whatsoever provided for this
      5 # software as specified in the disclaimer in the MIT license or section 7 of
      6 # the Apache license respectively.
      7 
      8 [Unit]
      9 Description=Agate gemini server
     10 
     11 [Service]
     12 # you should place the certificate and key file in this directory
     13 # and place the contents to be displayed in /srv/gemini/content
     14 WorkingDirectory=/srv/gemini/
     15 # assumes the device hostname is set correctly
     16 ExecStart=/bin/sh -c "agate --hostname $(uname -n) --lang en"
     17 
     18 Restart=always
     19 RestartSec=1
     20 
     21 StandardOutput=syslog
     22 StandardError=syslog
     23 # adds a syslog identifier so you can have these logs filtered into
     24 # a separate file
     25 SyslogIdentifier=gemini
     26 
     27 [Install]
     28 WantedBy=multi-user.target