LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-05-2009, 10:51 AM   #1
dsk84
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Problem with chkconfig returning status


Hello Experts,

I am working on a SLES 10 SP01 server and the chkconfig command is not reporting service status as expected.

$ chkconfig sapinit

Ideally following should be output:
$ sapinit on
But the output I get on the server is:
$ sapinit 345

The output returns the runlevels for the service instead of the status as on/off.
Please suggest if you would have idea as to why the chkconfig reports the runlevels. Due to this, few of our shell scripts abort with error messages. Your suggestion will be very helpful.

Thank you very much,
dsk
 
Old 05-05-2009, 05:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,394
Blog Entries: 55

Rep: Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566Reputation: 3566
Dunno. Chkconfig apparently behaves differently there. Maybe drop stdout and use the exit value?
 
  


Reply


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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
chkconfig problem kartheekpn Linux - Newbie 2 05-05-2005 11:48 PM
fan status/control incorrect and out of sync after returning from hibernate jlinkels Linux - Laptop and Netbook 2 04-08-2005 04:11 PM
lfs5.1.1 cannot find -lc collect2,returning 1 exit status keyur Linux From Scratch 0 08-17-2004 11:41 AM
chkconfig problem isvip1 Linux - Newbie 2 09-03-2002 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:52 AM.

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