Browse Source

Variable optimisation for hbbs rc.d service

Variable based IP definition, can be set from /etc/rc.conf
n-connect 2 years ago
parent
commit
fa0c006ac5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rcd/rustdesk-hbbs

+ 2 - 2
rcd/rustdesk-hbbs

@@ -25,7 +25,8 @@ rcvar=rustdesk_hbbs_enable
25 25
 load_rc_config $name
26 26
 
27 27
 : ${rustdesk_hbbs_enable:=NO}
28
-: ${rustdesk_hbbs_args:=""}
28
+: ${rustdesk_hbbs_ip:=127.0.0.1}
29
+: ${rustdesk_hbbs_args="-r ${rustdesk_hbbs_ip} -k _"}
29 30
 : ${rustdesk_hbbs_user:=rustdesk}
30 31
 : ${rustdesk_hbbs_group:=rustdesk}
31 32
 
@@ -33,7 +34,6 @@ pidfile=/var/run/rustdesk_hbbs.pid
33 34
 command=/usr/sbin/daemon
34 35
 procname=/usr/local/sbin/hbbs
35 36
 rustdesk_hbbs_chdir="/var/lib/rustdesk-server/"
36
-rustdesk_hbbs_args="-r your.ip.add.ress -k _"
37 37
 command_args="-p ${pidfile} -o /var/log/rustdesk-hbbs.log ${procname} ${rustdesk_hbbs_args}"
38 38
 ## If you want the daemon do its log over syslog comment out the above line and remove the comment from the below replacement
39 39
 #command_args="-p ${pidfile} -T ${name} ${procname} ${rustdesk_hbbs_args}"