contrib: add systemd service file

This commit is contained in:
Akilesh Kannan 2023-04-16 10:34:46 +05:30 committed by GitHub
parent dc07fff40c
commit 0191fc887e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
contrib/legit.service Normal file
View File

@ -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