Skip to content

Commit

Permalink
Variable optimisation for hbbr rc.d service
Browse files Browse the repository at this point in the history
Variable based IP definition, can be set from /etc/rc.conf
  • Loading branch information
n-connect authored Apr 1, 2023
1 parent fa0c006 commit 5789864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rcd/rustdesk-hbbr
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ rcvar=rustdesk_hbbr_enable
load_rc_config $name

: ${rustdesk_hbbr_enable:=NO}
: ${rustdesk_hbbr_args:=""}
: ${rustdesk_hbbr_args="-k _"}
: ${rustdesk_hbbr_user:=rustdesk}
: ${rustdesk_hbbr_group:=rustdesk}

pidfile=/var/run/rustdesk_hbbr.pid
command=/usr/sbin/daemon
procname=/usr/local/sbin/hbbr
rustdesk_hbbr_chdir="/var/lib/rustdesk-server/"
rustdesk_hbbr_args="-k _"
command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_args}"
## If you want the daemon do its log over syslog comment out the above line and remove the comment from the below replacement
#command_args="-p ${pidfile} -T ${name} ${procname} ${rustdesk_hbbr_args}"
Expand Down

0 comments on commit 5789864

Please sign in to comment.