Skip to content
Permalink
Browse files

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

  • Loading branch information...
decke committed Jul 31, 2018
1 parent 7b37d90 commit a865d3cc9e3dda591251a8fae75a717a69fcc592
Showing with 8 additions and 0 deletions.
  1. +8 −0 rc.d/ssbt
@@ -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"

0 comments on commit a865d3c

Please sign in to comment.
You can’t perform that action at this time.