mirror of
https://github.com/omar-polo/gmid.git
synced 2024-10-07 01:37:19 +02:00
2b38d395cd
Changed gmid.service to not to fork the server and forced to run under user "gmid". gmid now waits for the network stack beeing available before starting. Also "gmid" is now the syslog id.
22 lines
458 B
Desktop File
22 lines
458 B
Desktop File
[Unit]
|
|
Description=The gmid Gemini server
|
|
Documentation=https://gmid.omarpolo.com/
|
|
After=network-online.target syslog.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=gmid
|
|
Group=nobody
|
|
ExecStart=/usr/local/bin/gmid -f -c /etc/gmid.conf
|
|
ExecStop=/bin/kill -TERM $MAINPID
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
StandardOutput=journal
|
|
StandardError=inherit
|
|
SyslogIdentifier=gmid
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|