17 lines
389 B
Bash
17 lines
389 B
Bash
#!/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"
|
|
meshagent_chdir="/usr/local/mesh"
|
|
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" |