[Unit] Description=tangled knot server After=network.target network-online.target Wants=network-online.target AssertPathExists=/var/lib/knotserver AssertPathExists=/var/lib/tangled [Service] Environment="KNOT_SERVER_HOSTNAME=%H" Environment="KNOT_SERVER_LISTEN_ADDR=127.0.0.1:5555" Environment="KNOT_REPO_SCAN_PATH=/var/lib/tangled" EnvironmentFile=-/etc/tangled/knotserver WorkingDirectory=/var/lib/knotserver ExecStart=/usr/bin/knotserver Restart=always User=git Group=git StandardOutput=journal StandardError=journal LimitNOFILE=65536 # Creates /var/log/knotserver with the correct permissions for the repoguard log. LogsDirectory=knotserver [Install] WantedBy=multi-user.target