summaryrefslogtreecommitdiff
path: root/docs/9web.service
blob: 7109935d0d65cbc5f44e859c9535fa8c6bae3cf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=9web filesystem, sites and services
After=network.target

[Service]
ExecStart=%h/.local/bin/9ns --mntgen -- %h/.local/libexec/9web --listen [::]:8090 --catalog %h/.config/9web/sites.json --catalog-socket %t/9web/catalog.sock --state-dir %h/.local/state/9web
Restart=on-failure
RestartSec=2
RuntimeDirectory=9web
RuntimeDirectoryMode=0700
UMask=0077
KillMode=control-group
TimeoutStopSec=10
NoNewPrivileges=yes
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin

[Install]
WantedBy=default.target