~bigbes/sr-ht-compare

ref: 3e79c6dea6e380e00d7a7ad17ea8674dd62c8ca2 sr-ht-compare/contrib/compare-srht.service -rw-r--r-- 867 bytes
3e79c6de — bigbes web: draw the chrome from sr-ht-ecore 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[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 -b 127.0.0.1:5090

# core-go's server.Run performs its warm shutdown on SIGINT (the SourceHut
# fleet convention), not the systemd default SIGTERM. Send SIGINT on stop so
# `systemctl stop`/restart drains in-flight requests instead of hard-killing.
KillSignal=SIGINT
TimeoutStopSec=35

# 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