File: loggerhead.service

package info (click to toggle)
loggerhead 2.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,060 kB
  • sloc: python: 4,673; javascript: 534; sh: 113; makefile: 94
file content (25 lines) | stat: -rw-r--r-- 608 bytes parent folder | download
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
[Unit]
Description=Loggerhead Breezy Branch Browser
Documentation=man:loggerhead-serve(1)
After=network.target
ConditionPathExists=/etc/loggerhead-serve.conf

[Service]
Type=simple
User=loggerhead
Group=loggerhead
EnvironmentFile=/etc/loggerhead-serve.conf
ExecStart=/usr/bin/loggerhead-serve --prefix=${prefix} --port=${port} --log-folder=/var/log/loggerhead ${served_branches}
Restart=on-failure
RestartSec=5s

# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/loggerhead
StateDirectory=loggerhead

[Install]
WantedBy=multi-user.target