aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-11 15:44:44 +0000
committerOmar Polo <op@omarpolo.com>2021-07-11 15:44:44 +0000
commite8b80030984be6eb0621f998d970c075a45466e5 (patch)
tree2b871b0dd8c89198d68628645e282a6bf6f09aa1 /contrib
parente2d3a8f2220ffc04472c552e69749b2f75f03778 (diff)
add an example systemd unit file
Diffstat (limited to 'contrib')
-rw-r--r--contrib/README8
-rw-r--r--contrib/gmid.service14
2 files changed, 21 insertions, 1 deletions
diff --git a/contrib/README b/contrib/README
index 1457ba5..be29c44 100644
--- a/contrib/README
+++ b/contrib/README
@@ -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.
+
diff --git a/contrib/gmid.service b/contrib/gmid.service
new file mode 100644
index 0000000..3aedb92
--- /dev/null
+++ b/contrib/gmid.service
@@ -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