service --status-all 查看服务状态时,"+"、" -"、" ?" 的含义是什么?

wfu 2012-02-02 11:38:39
service --status-all

[ + ] apache2
[ + ] apparmor
[ ? ] apport
[ ? ] atd
[ ? ] avahi-daemon
[ ? ] binfmt-support
[ - ] bluetooth
[ - ] bootlogd

"+"、" -"、" ?" 的含义是什么?
...全文
1281 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wfu 2012-02-02
  • 打赏
  • 举报
回复
man service 没看到

service(8) service(8)

NAME
service - run a System V init script

SYNOPSIS
service SCRIPT COMMAND [OPTIONS]

service --status-all

service --help | -h | --version

DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /.

The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the invoked script, service passes COMMAND and
OPTIONS it to the init script unmodified. All scripts should support at least the start and stop commands. As a special case, if COMMAND is --full-restart, the script is run twice,
first with the stop command, then with the start command.

service --status-all runs all init scripts, in alphabetical order, with the status command.

EXIT CODES
service calls the init script and returns the status returned by it.

FILES
/etc/init.d
The directory containing System V init scripts.

ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.

SEE ALSO
/etc/init.d/skeleton,
update-rc.d(8),
init(8),
invoke-rc.d(8).
justkk 2012-02-02
  • 打赏
  • 举报
回复
man service

里面应该有说明
wfu 2012-02-02
  • 打赏
  • 举报
回复
"?" unknown>>>很奇怪,有些是unknow 的实际上是启动的服务, 不太明白哪些是unkonw的。



[Quote=引用 4 楼 justkk 的回复:]

简单搜了一下

"+" started
"-" stopped
"?" unknown
[/Quote]
justkk 2012-02-02
  • 打赏
  • 举报
回复
简单搜了一下

"+" started
"-" stopped
"?" unknown

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧