summaryrefslogtreecommitdiff
path: root/docs/9web.service
diff options
context:
space:
mode:
Diffstat (limited to 'docs/9web.service')
-rw-r--r--docs/9web.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/9web.service b/docs/9web.service
new file mode 100644
index 0000000..a20bd89
--- /dev/null
+++ b/docs/9web.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=9web local sites, build controls and listener catalogue
+After=network.target
+
+[Service]
+ExecStart=%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