Browse Source

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

tags/v1.0.1
Bernhard Fröhlich 1 year 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 @@

name="ssbt"
rcvar="ssbt_enable"
start_cmd="ssbt_start"
stop_cmd=":"

ssbt_start()
{
su -m ${ssbt_user} -c "${command} ${ssbt_flags} &"
}

command="/usr/local/sbin/ssbt"

@@ -25,5 +32,6 @@ load_rc_config $name
: ${ssbt_dir="/nonexistent"}
: ${ssbt_user="backup"}
: ${ssbt_flags="pull"}
: ${required_dirs=${ssbt_dir}}

run_rc_command "$1"

Loading…
Cancel
Save