summarylogtreecommitdiffstats
path: root/asgi-webdav.user.service
blob: 7937dcd42b27dc924475218a6b1d4ef7077b1299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description = ASGI WebDAV Server
Documentation = https://rexzhang.github.io/asgi-webdav/
Documentation = https://rexzhang.github.io/asgi-webdav/zh/
Wants = network-online.target
After = network-online.target

[Service]
Restart = on-failure
ExecStartPre = /usr/bin/mkdir -p "%E/asgi-webdav" ; /usr/bin/touch "%E/asgi-webdav/config.json"
ExecStart = /usr/bin/asgi-webdav --host 0.0.0.0 --port 8000 --config "%E/asgi-webdav/config.json"

[Install]
WantedBy = default.target