yggdrasil-go/contrib/systemd/mesh.service
Mihail Slobodyanuk 1c9fd32533 Fix RIVM-23
2022-12-13 17:38:52 +02:00

21 lines
580 B
Desktop File

[Unit]
Description=mesh
Wants=network-online.target
Wants=mesh-default-config.service
After=network-online.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 -logto /var/log/mesh.log -httpaddress "http://localhost:19019" -wwwroot "/usr/share/riv/ui"
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target