Browse Source

Merge pull request #225 from n-connect/master

Adding log capability over syslog
RustDesk 2 years ago
parent
commit
74ff886900
2 changed files with 5 additions and 1 deletions
  1. 2 0
      rcd/rustdesk-hbbr
  2. 3 1
      rcd/rustdesk-hbbs

+ 2 - 0
rcd/rustdesk-hbbr

@@ -35,6 +35,8 @@ 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 _"
36
 rustdesk_hbbr_args="-k _"
37
 command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_args}"
37
 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
39
+#command_args="-p ${pidfile} -T ${name} ${procname} ${rustdesk_hbbr_args}"
38
 
40
 
39
 start_precmd=rustdesk_hbbr_startprecmd
41
 start_precmd=rustdesk_hbbr_startprecmd
40
 
42
 

+ 3 - 1
rcd/rustdesk-hbbs

@@ -33,8 +33,10 @@ pidfile=/var/run/rustdesk_hbbs.pid
33
 command=/usr/sbin/daemon
33
 command=/usr/sbin/daemon
34
 procname=/usr/local/sbin/hbbs
34
 procname=/usr/local/sbin/hbbs
35
 rustdesk_hbbs_chdir="/var/lib/rustdesk-server/"
35
 rustdesk_hbbs_chdir="/var/lib/rustdesk-server/"
36
-rustdesk_hbbs_args="-r 130.255.77.37 -k _"
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
39
+#command_args="-p ${pidfile} -T ${name} ${procname} ${rustdesk_hbbs_args}"
38
 
40
 
39
 start_precmd=rustdesk_hbbs_startprecmd
41
 start_precmd=rustdesk_hbbs_startprecmd
40
 
42