MeshCentral/agents/meshinstall-bsd-rcd.sh

17 lines
389 B
Bash
Raw Normal View History

2019-07-23 03:23:13 +03:00
#!/bin/sh
# PROVIDE: meshagent
# REQUIRE: FILESYSTEMS NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name="meshagent"
desc="MeshCentral Agent"
rcvar=${name}_enable
pidfile="/var/run/meshagent.pid"
2020-06-04 21:37:02 +03:00
meshagent_chdir="/usr/local/mesh"
2019-07-23 03:23:13 +03:00
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f /usr/local/mesh/meshagent "
load_rc_config $name
: ${meshagent_enable="YES"}
run_rc_command "$1"