Add services
This commit is contained in:
18
services/meshcentral.openrc
Normal file
18
services/meshcentral.openrc
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
# MeshCentral Server OpenRC service, mostly used with Alpine Linux
|
||||
|
||||
name="MeshCentral Server"
|
||||
description="MeshCentral Server"
|
||||
|
||||
depend() {
|
||||
need networking
|
||||
}
|
||||
|
||||
export NODE_ENV="production"
|
||||
directory="/opt/meshcentral"
|
||||
command="/usr/bin/node /opt/meshcentral/node_modules/meshcentral"
|
||||
command_background=true
|
||||
pidfile="/run/meshcentral.pid"
|
||||
output_log="/var/log/meshcentral.log"
|
||||
error_log="/var/log/meshcentral.err"
|
||||
Reference in New Issue
Block a user