yggdrasil-go/contrib/systemd/mesh.service
vadym b5ee2aa023 changed Yggdrasil to RiV-mesh
added webview GUI
2021-09-13 12:10:02 +03:00

21 lines
474 B
Desktop File

[Unit]
Description=mesh
Wants=network.target
Wants=mesh-default-config.service
After=network.target
After=mesh-default-config.service
[Service]
Group=mesh
ProtectHome=true
ProtectSystem=true
SyslogIdentifier=mesh
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
ExecStartPre=+-/sbin/modprobe tun
ExecStart=/usr/bin/mesh -useconffile /etc/mesh.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target