From: Dave H. <dhy...@gm...> - 2007-12-16 02:16:10
|
Hi Oliver, > I have the following problem on verdex: > I have added a new startup-skript to the /etc/init.d folder. > In this skrips I start my application with verbose output. > Everything seems to be fine but the suddenly the output stops > and the login prompt appears. > I've already removed the getty from inittab but this doesn't help. > After login, top shows me, that my processes have not been created. > In case I start now my skript by hand everything works fine. > > If I reboot or halt the system I can see, that my startup-script > resumes with starting up my application!! When starting up, the script is passed the parameter start on the command line, and when shutting down, it's passed the parameter stop on the command line. So if you don't check for the argument, you would try to start when in fact you're being told to stop. As to why it doesn't work at startup, I'm not sure without seeing the script. You might want to try doing this: 1 - Add the line "set -x" near the top of your script. 2 - Rename your script so that it doesn't start with an S. 3 - Make a new script which does start with an S, and make it do something like: /etc/init.d/Renamed-Script start > /var/log/mylog.txt Make sure that both the new script and your old script are marked as executable. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |