blob: e64934f3050d23d2ac47db6a859dd55f843a623c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[Unit]
Description=MeshBay Node — local file host and streaming server
Documentation=https://meshbay.org/docs
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=%i
Group=%i
# Per-user service: systemctl enable --now meshbay-node@$USER
WorkingDirectory=%h
# Override unlock mode in ~/.config/meshbay/hub.env
EnvironmentFile=-%h/.config/meshbay/node.env
# Alternative: MESHBAY_UNLOCK_KEY=<password> in environment file (chmod 600)
ExecStart=/usr/bin/meshbay-node --config %h/.config/meshbay/node.toml
Restart=on-failure
RestartSec=10
TimeoutStopSec=30
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=default.target
|