l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 23 14:50

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Strange server behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Strange server behavior

On Wed, Apr 23, 2003 at 02:02:36PM -0700, Richard Crawford wrote:
> I have a script in /etc/init.d which starts up a service when the computer
> boots up.  It is also possible to start up the service manually by
> entering the appropriate command on the command line.
> Now, when I start the service on the command line, it works just fine. 
> However, when I start up the computer (or try to start the services
> manually by running the init.d script from the command line), the services
> do not work. They show up as running when I do a ps -aux command, but they
> simply do not work.
> How is this possible?

Check how they are called in the init.d script with the argument of
"start", and compare it with how you invoke it manually.

If they are the same, also take into consideration the difference in
environment: what env. vars do you have that init wouldn't/vice-versa?
If you're not running it as root via the commandline, even that
can make a negative difference (it has for me in some cases). If the
latter ends up being the problem, it is often because the script
realizes that, due to certain configurations of your system, running
as root is Very Dangerous(TM), and the script simply refuses in good
concience to allow this situation, and so will gracefully exit.

Of course, you're not talking about graceful exits in this case, so I
doubt that last is your problem. But think about all these
things. There obviously *has* to be some difference...

...BTW, did you ensure that the path to the program you're invoking is
the same in both cases? Coz that would *really* explain it...

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.