Browse Source

Run rc startscript in background to avoid blocking startup of the system

Bernhard Fröhlich 6 months ago
parent
commit
a865d3cc9e
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      rc.d/ssbt

+ 8
- 0
rc.d/ssbt View File

@@ -17,6 +17,13 @@
17 17
 
18 18
 name="ssbt"
19 19
 rcvar="ssbt_enable"
20
+start_cmd="ssbt_start"
21
+stop_cmd=":"
22
+
23
+ssbt_start()
24
+{
25
+	su -m ${ssbt_user} -c "${command} ${ssbt_flags} &"
26
+}
20 27
 
21 28
 command="/usr/local/sbin/ssbt"
22 29
 
@@ -25,5 +32,6 @@ load_rc_config $name
25 32
 : ${ssbt_dir="/nonexistent"}
26 33
 : ${ssbt_user="backup"}
27 34
 : ${ssbt_flags="pull"}
35
+: ${required_dirs=${ssbt_dir}}
28 36
 
29 37
 run_rc_command "$1"

Loading…
Cancel
Save