~bigbes/sr-ht-compare

ref: e1835faeeb226d9021a7b37109232106bb37e7be sr-ht-compare/contrib/compare-srht.service -rw-r--r-- 582 bytes
e1835fae — bigbes compare.sr.ht: project foundation — core package, build scaffolding, core-go fork pin a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=compare.sr.ht git diff/compare viewer
After=network.target

[Service]
Type=simple
# Runs as the git user so it has read access to the bare repositories under
# /var/lib/git. compare.sr.ht is stateless — no database or Redis dependency.
User=git
Restart=always
ExecStart=/usr/local/bin/comparesrht

# The service only ever reads: bare repos on disk and the shared config. It
# writes nothing, so lock the filesystem down.
ProtectSystem=strict
ProtectHome=true
ReadOnlyPaths=/var/lib/git
PrivateTmp=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target