Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I really miss the graphical "Services" tool from older versions of Ubuntu, but I understand why it had to go. I always have terminals open anyway, so I use (because I have to now, I guess) service --status-all to see what services are running. This would be ok except that the command produces output like the following:

 [ + ]  winbind
 [ ? ]  wpa-ifupdown
 [ - ]  x11-common

I'm guessing that those symbols mean something like listening, blocked, or stopped, but which is which? More importantly, why doesn't the man page say?

share|improve this question

2 Answers 2

up vote 16 down vote accepted

To provide a shallow and unsatisfactory answer your first question:

  • The command service --status-all literally runs service $SERVICE status for each service that supports the status command. It draws a [ + ] or [ - ] depending on whether the exit status was zero or nonzero, respectively.
  • The [ ? ] is drawn for services that do not support the service command. Support for this command is determined by grepping the "Usage" information that is printed when service $SERVICE is run.

As you might have anticipated, I learned this by reading the source code.

To address the real issue – the lack of documentation – I suggest filing a polite bug report about the manpage on Launchpad. ubuntu-bug sysvinit-utils should get you started.

share|improve this answer
    
Thank you! I got as far as logging in to launchpad, but then I wasn't sure which package to specify. I have a hard time trying to read source code :( –  koanhead Sep 29 '10 at 6:29
    
Thanks a lot. +1 –  Raja Aug 24 '13 at 16:32

services-admin was removed from the default installation some releases ago due to the fact that it was unable to handle Upstart jobs.

In 10.10, a utility to manage services has returned: jobs-admin will be able to control and configure both Upstart and System V jobs/services. If you'd like to give this a try now, check out the jobs-admin/jobservice PPA.

As for the symbols in your question, I believe + is running/enabled, ? is configured to start but may not be currently running (run-once, maybe), and - is likely disabled or not running.

Disclaimer: I am the developer of jobs-admin and jobservice and worked on it as a summer of code project for Ubuntu. It is not available on a default installation, but I'd like to work towards that for 11.04.

share|improve this answer
1  
I really wanted to check both your and aendruk's answers, but sadly I can't. Since he gave an answer more specific to my question, I checked his answer. I'm happy to hear of your project and look forward to working with jobs-admin. Will it by any chance have a textual or ncurses interface available? Thanks for all you do! –  koanhead Sep 29 '10 at 6:34
    
No worries. And yes, I am planning on writing an ncurses interface for use on the server in the next release. :) –  Jacob Peddicord Sep 29 '10 at 14:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.