summaryrefslogtreecommitdiff
path: root/docs/9web.service
blob: a861671ee0e52c7c692269247822fc865eb95c3d (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 --post 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