summaryrefslogtreecommitdiffstats
path: root/contrib/legit.service
diff options
context:
space:
mode:
authorLibravatar Akilesh Kannan <aklsh@tuta.io>2023-04-16 10:34:46 +0530
committerLibravatar GitHub <noreply@github.com>2023-04-16 10:34:46 +0530
commit0191fc887ee9e211e0c4dced100bed166f71d6cb (patch)
treebf4ed11dc270f2adc0dde2a1c9b5e68eb90fac5f /contrib/legit.service
parentdc07fff40c4837f37168173ea6fb6c84403d6dbd (diff)
downloadlegit-0191fc887ee9e211e0c4dced100bed166f71d6cb.tar.gz
legit-0191fc887ee9e211e0c4dced100bed166f71d6cb.tar.bz2
legit-0191fc887ee9e211e0c4dced100bed166f71d6cb.zip
contrib: add systemd service file
Diffstat (limited to '')
-rw-r--r--contrib/legit.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/legit.service b/contrib/legit.service
new file mode 100644
index 0000000..e0193ed
--- /dev/null
+++ b/contrib/legit.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=legit Server
+After=network-online.target
+Requires=network-online.target
+
+[Service]
+User=git
+Group=git
+ExecStart=/usr/bin/legit -config /etc/legit/config.yaml
+ProtectSystem=strict
+ProtectHome=strict
+NoNewPrivileges=true
+PrivateTmp=true
+PrivateDevices=true
+
+[Install]
+WantedBy=multi-user.target