Просмотр исходного кода

Variable optimisation for hbbs rc.d service

Variable based IP definition, can be set from /etc/rc.conf
n-connect лет назад: 2
Родитель
Сommit
fa0c006ac5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      rcd/rustdesk-hbbs

+ 2 - 2
rcd/rustdesk-hbbs

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