Automating the services start up




GCONNECT mount /mnt/eSata after run rc.local. So my workaround this I put a "personal" rc.local to start in background from /etc/rc.local.

Once I did that all my services are included in /root/rc.local

OBS: Sometimes GCONNECT takes a little longer time to mount the hard drive. That's why I include a sleep 20 in /root/rc.local.

cat /etc/rc.local                                                                                                                   

#!/bin/sh                                                                                    
#                                                                                             
# This script will be executed *after* all the other init scripts.                           
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.                                                                  
touch /var/lock/subsys/local
/sbin/ldconfig  
/usr/bin/ubifs_repair.sh                
                              
# START rc.local root 
/root/rc.local &  

cat /root/rc.local

#!/bin/sh 
# Sleep 20 to wait harddrive mount 
sleep 20 
/opt/bin/transmission-daemon -g /home/admin/.config/transmission-daemon/