Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=MeshCentral Server
- [Service]
- Type=simple
- ExecStartPre=/bin/sleep 200
- LimitNOFILE=1000000
- ExecStart=/root/.nvm/versions/node/v18.4.0/bin/node /root/meshcentral/node_modules/meshcentral/meshcentral
- WorkingDirectory=/root
- Environment=NODE_ENV=production
- User=root
- Group=root
- Restart=always
- # Restart service after 10 seconds if node service crashes
- RestartSec=10
- # Set port permissions capability
- AmbientCapabilities=cap_net_bind_service
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement