Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-09-2005, 12:35 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Brisbane, Australia
Distribution: RHE 3.0
Posts: 18

Rep: Reputation: 0
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...

Old 11-09-2005, 02:52 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You could put echo statements in the script to tell you what it is doing.
Old 11-09-2005, 08:10 AM   #3
Registered: May 2005
Location: Greece
Posts: 432

Rep: Reputation: 114Reputation: 114
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.
Old 11-09-2005, 05:49 PM   #4
LQ Newbie
Registered: Aug 2004
Location: Brisbane, Australia
Distribution: RHE 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the tips

Thanks guys.

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nologin oddity prn Linux - Security 2 04-22-2005 06:01 PM
Gnome 2.8 Oddity inescapeableus Linux - Software 2 01-10-2005 04:00 AM
NIS oddity Rekna Linux - Networking 2 06-17-2004 07:09 PM
DHCPCD Oddity ellesedilandal Linux - Networking 4 12-28-2003 10:09 AM
fdisk oddity neo77777 Linux - General 4 08-16-2002 09:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration