LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   More of an oddity than a problem... (https://www.linuxquestions.org/questions/linux-newbie-8/more-of-an-oddity-than-a-problem-381323/)

Neowulf 11-08-2005 11:35 PM

More of an oddity than a problem...
 
Hi all,

This might seem like a bit of a strange question, but I figured it never hurts to ask.

I've just recently installed a new package on my RHEL 3.0 server and had to manually create the init.d script for it.

Now, the script works fine. There's just one little thing that's been bugging me.

When I start the script, I don't get the

[root@mybox init.d]#service mydaemon start

Starting Server: [OK]

prompt I expect...

Instead I just get the "Starting Server:" part and that's it.

The daemon is working fine and the script works perfectly.

Just kind of annoying / curious that it doesn't behave like the rest of the init.d scripts.

Any thoughts welcome...

~Neowulf.

TigerOC 11-09-2005 01:52 AM

You could put echo statements in the script to tell you what it is doing.

imitheos 11-09-2005 07:10 AM

This is a BASH script, right ?
If yes, then you can change the first line from "#!/bin/bash" to "#!/bin/bash -x"
and then run it.
This way it will print the command and then run it, so you can see what it does.

It is the same as TigerOC mentioned but you don't need to edit the file and put an echo command before each line.
BASH will do it for you.

Neowulf 11-09-2005 04:49 PM

Thanks for the tips
 
Thanks guys.

I'll investigate further and see if this can shed some light on the strange behaviour.

Cheers.

~Neowulf.


All times are GMT -5. The time now is 09:55 PM.