Add services

This commit is contained in:
2025-11-28 21:38:34 -06:00
parent 221355840d
commit 7a1c061b5f
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
[Unit]
Description=MeshCentral Server
[Service]
Type=simple
LimitNOFILE=1000000
ExecStart=/usr/bin/node /home/meshsvc/meshcentral/node_modules/meshcentral
WorkingDirectory=/home/meshsvc/meshcentral
Environment=NODE_ENV=production
User=meshsvc
Group=meshsvc
Restart=always
# if mesh crashes, restart every 30 secs
RestartSec=30
AmbientCapabilities=cap_net_bind_service
[Install]
WantedBy=multi-user.target