diff options
author | n-connect <[email protected]> | 2023-04-01 11:18:44 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-01 11:18:44 +0200 |
commit | fa0c006ac534790b9d3da5f71cc8d7759d7143e9 (patch) | |
tree | e4ebdb69d79ccb7432d41c949b33b6cd5db48d86 | |
parent | 178ff59623b75787e158fc52b165eeaadea64fa4 (diff) | |
download | rustdesk-server-fa0c006ac534790b9d3da5f71cc8d7759d7143e9.tar.gz rustdesk-server-fa0c006ac534790b9d3da5f71cc8d7759d7143e9.zip |
Variable optimisation for hbbs rc.d service
Variable based IP definition, can be set from /etc/rc.conf
-rw-r--r-- | rcd/rustdesk-hbbs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rcd/rustdesk-hbbs b/rcd/rustdesk-hbbs index 4bceb5b..debdcc3 100644 --- a/rcd/rustdesk-hbbs +++ b/rcd/rustdesk-hbbs @@ -25,7 +25,8 @@ rcvar=rustdesk_hbbs_enable load_rc_config $name : ${rustdesk_hbbs_enable:=NO} -: ${rustdesk_hbbs_args:=""} +: ${rustdesk_hbbs_ip:=127.0.0.1} +: ${rustdesk_hbbs_args="-r ${rustdesk_hbbs_ip} -k _"} : ${rustdesk_hbbs_user:=rustdesk} : ${rustdesk_hbbs_group:=rustdesk} @@ -33,7 +34,6 @@ pidfile=/var/run/rustdesk_hbbs.pid command=/usr/sbin/daemon procname=/usr/local/sbin/hbbs rustdesk_hbbs_chdir="/var/lib/rustdesk-server/" -rustdesk_hbbs_args="-r your.ip.add.ress -k _" command_args="-p ${pidfile} -o /var/log/rustdesk-hbbs.log ${procname} ${rustdesk_hbbs_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_hbbs_args}" |