mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added support for FreeBSD
This commit is contained in:
parent
3cf62a8a59
commit
fc2d782043
3 changed files with 73 additions and 16 deletions
17
agents/meshinstall-bsd-rcd.sh
Normal file
17
agents/meshinstall-bsd-rcd.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/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"
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-P ${pidfile} -r -f /usr/local/mesh/meshagent "
|
||||
command_chdir="/usr/local/mesh"
|
||||
|
||||
load_rc_config $name
|
||||
: ${meshagent_enable="YES"}
|
||||
run_rc_command "$1"
|
Loading…
Add table
Add a link
Reference in a new issue