1[Unit]
2Description=tangled knot server
3After=network.target network-online.target
4Wants=network-online.target
5AssertPathExists=/var/lib/knotserver
6AssertPathExists=/var/lib/tangled
7
8[Service]
9Environment="KNOT_SERVER_LISTEN_ADDR=127.0.0.1:5555"
10Environment="KNOT_REPO_SCAN_PATH=/var/lib/tangled"
11WorkingDirectory=/var/lib/knotserver
12ExecStart=/usr/bin/knot server
13Restart=always
14User=git
15Group=git
16
17StandardOutput=journal
18StandardError=journal
19LimitNOFILE=65536
20
21# Creates /var/log/knotserver with the correct permissions for the repoguard log.
22LogsDirectory=knotserver
23
24[Install]
25WantedBy=multi-user.target