From 4f41300450deb86aa3f9dccc2e2d5b6ef59c38c1 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Mon, 24 Jul 2023 17:01:34 +0200 Subject: [PATCH 1/3] Fix comments. --- rcd/rustdesk-hbbr | 6 +++--- rcd/rustdesk-hbbs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rcd/rustdesk-hbbr b/rcd/rustdesk-hbbr index 15583a9..523815b 100644 --- a/rcd/rustdesk-hbbr +++ b/rcd/rustdesk-hbbr @@ -8,9 +8,9 @@ # to enable this service: # # rustdesk_hbbr_enable (bool): Set to NO by default. -# Set it to YES to enable nfs-exporter. -# rustdesk_hbbr_args (string): Set extra arguments to pass to nfs-exporter -# Default is "". +# Set it to YES to enable rustdesk_hbbr. +# rustdesk_hbbr_args (string): Set extra arguments to pass to rustdesk_hbbr +# Default is "-k _". # rustdesk_hbbr_user (string): Set user that rustdesk_hbbr will run under # Default is "root". # rustdesk_hbbr_group (string): Set group that rustdesk_hbbr will run under diff --git a/rcd/rustdesk-hbbs b/rcd/rustdesk-hbbs index debdcc3..d136525 100644 --- a/rcd/rustdesk-hbbs +++ b/rcd/rustdesk-hbbs @@ -8,9 +8,9 @@ # to enable this service: # # rustdesk_hbbs_enable (bool): Set to NO by default. -# Set it to YES to enable nfs-exporter. -# rustdesk_hbbs_args (string): Set extra arguments to pass to nfs-exporter -# Default is "". +# Set it to YES to enable rustdesk_hbbs. +# rustdesk_hbbs_args (string): Set extra arguments to pass to rustdesk_hbbs +# Default is "-r ${rustdesk_hbbs_ip} -k _". # rustdesk_hbbs_user (string): Set user that rustdesk_hbbs will run under # Default is "root". # rustdesk_hbbs_group (string): Set group that rustdesk_hbbs will run under From 35c2386c98578e4610636f1435f4e04dd947723d Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Mon, 24 Jul 2023 17:05:57 +0200 Subject: [PATCH 2/3] Remove unneeded quotes. --- rcd/rustdesk-hbbr | 2 +- rcd/rustdesk-hbbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rcd/rustdesk-hbbr b/rcd/rustdesk-hbbr index 523815b..4fef650 100644 --- a/rcd/rustdesk-hbbr +++ b/rcd/rustdesk-hbbr @@ -32,7 +32,7 @@ load_rc_config $name pidfile=/var/run/rustdesk_hbbr.pid command=/usr/sbin/daemon procname=/usr/local/sbin/hbbr -rustdesk_hbbr_chdir="/var/lib/rustdesk-server/" +rustdesk_hbbr_chdir=/var/lib/rustdesk-server command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_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_hbbr_args}" diff --git a/rcd/rustdesk-hbbs b/rcd/rustdesk-hbbs index d136525..e99ef71 100644 --- a/rcd/rustdesk-hbbs +++ b/rcd/rustdesk-hbbs @@ -33,7 +33,7 @@ load_rc_config $name pidfile=/var/run/rustdesk_hbbs.pid command=/usr/sbin/daemon procname=/usr/local/sbin/hbbs -rustdesk_hbbs_chdir="/var/lib/rustdesk-server/" +rustdesk_hbbs_chdir=/var/lib/rustdesk-server 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}" From 04a9d307c5ca05148b142774a70f95df1f8e5680 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Mon, 24 Jul 2023 17:06:23 +0200 Subject: [PATCH 3/3] Change chdir location to /var/db, according to hier(7). BSD systems do not really have a /var/lib directory, although it happens to exist on live systems because some installed software creates it. --- rcd/rustdesk-hbbr | 2 +- rcd/rustdesk-hbbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rcd/rustdesk-hbbr b/rcd/rustdesk-hbbr index 4fef650..d129ea3 100644 --- a/rcd/rustdesk-hbbr +++ b/rcd/rustdesk-hbbr @@ -32,7 +32,7 @@ load_rc_config $name pidfile=/var/run/rustdesk_hbbr.pid command=/usr/sbin/daemon procname=/usr/local/sbin/hbbr -rustdesk_hbbr_chdir=/var/lib/rustdesk-server +rustdesk_hbbr_chdir=/var/db/rustdesk-server command_args="-p ${pidfile} -o /var/log/rustdesk-hbbr.log ${procname} ${rustdesk_hbbr_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_hbbr_args}" diff --git a/rcd/rustdesk-hbbs b/rcd/rustdesk-hbbs index e99ef71..1ec1589 100644 --- a/rcd/rustdesk-hbbs +++ b/rcd/rustdesk-hbbs @@ -33,7 +33,7 @@ load_rc_config $name pidfile=/var/run/rustdesk_hbbs.pid command=/usr/sbin/daemon procname=/usr/local/sbin/hbbs -rustdesk_hbbs_chdir=/var/lib/rustdesk-server +rustdesk_hbbs_chdir=/var/db/rustdesk-server 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}"