ts-7000
[Top] [All Lists]

Re: [ts-7000] startup script problem

To:
Subject: Re: [ts-7000] startup script problem
From: Jim Jackson <>
Date: Tue, 19 Jul 2011 21:46:56 +0100 (BST)

How does my_script.sh start my_app?

Make sure that either:

1) my_app demonises itself by calling the function daemon
    (see   man 3 daemon)

or

2) you start my_app

     nohup /home/eclipse/my_app  < /dev/null > /dev/null &

   so that when my_script.sh exits, it doesn't send HUP to my_app and kill 
   it.

Jim
p.s. I think that's the 3rd time in a couple of months this info has been 
handed out!

On Tue, 19 Jul 2011, vmasterc wrote:

> I'm having a problems running a script on start up.
> Here is the process I have followed:
> 
> 1. Created a script at /etc/init.d/my_script.sh which runs an application 
> at /home/eclipse/my_app
> 
> 2. permitted execution as follows:
>          chmod +x /etc/init.d/my_script.sh 
>          chmod +x /home/eclipse/my_app
> 
> 3. assigned it to run on runlevel 3 as follows:
>          update-rc.d -f my_script.sh start 99 3 .
> 
> Now, if I change runlevels and change back to runlevel 3 by calling
>          telinit 2
>          telinit 3
> the script runs, and the application my_app starts running.
> 
> All fine so far...
> However, when I reboot the device, my_app is never running when the device 
> has booted up, even though I am in runlevel 3, suggesting that that my_script 
> is not run on startup.
> 
> Can anyone suggest why it might not be running at startup?
> Is there any way of getting a record of scripts that are run on start up?
>  
> 
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU