Browse Source

Variable optimisation for hbbr rc.d service

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

+ 1 - 2
rcd/rustdesk-hbbr

@@ -25,7 +25,7 @@ rcvar=rustdesk_hbbr_enable
25
 load_rc_config $name
25
 load_rc_config $name
26
 
26
 
27
 : ${rustdesk_hbbr_enable:=NO}
27
 : ${rustdesk_hbbr_enable:=NO}
28
-: ${rustdesk_hbbr_args:=""}
28
+: ${rustdesk_hbbr_args="-k _"}
29
 : ${rustdesk_hbbr_user:=rustdesk}
29
 : ${rustdesk_hbbr_user:=rustdesk}
30
 : ${rustdesk_hbbr_group:=rustdesk}
30
 : ${rustdesk_hbbr_group:=rustdesk}
31
 
31
 
@@ -33,7 +33,6 @@ pidfile=/var/run/rustdesk_hbbr.pid
33
 command=/usr/sbin/daemon
33
 command=/usr/sbin/daemon
34
 procname=/usr/local/sbin/hbbr
34
 procname=/usr/local/sbin/hbbr
35
 rustdesk_hbbr_chdir="/var/lib/rustdesk-server/"
35
 rustdesk_hbbr_chdir="/var/lib/rustdesk-server/"
36
-rustdesk_hbbr_args="-k _"
37
 command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_args}"
36
 command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_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
37
 ## 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_hbbr_args}"
38
 #command_args="-p ${pidfile} -T ${name} ${procname} ${rustdesk_hbbr_args}"