Linux
发布时间:2022-04-01 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 列出所有服务时问号意味着什么?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
概述
在执行命令服务–status-all之后,我得到了我机器上所有服务的列表.我得到这样的输出. [ ? ] acpi-fakekey
[ ? ] acpi-support
[ + ] acpid
[ - ] anacron
[ + ] apache2
[ + ] atd
[ - ] bootlogd 什么是?意思?我总是假设一个过程开始的手段,并且 – 意味着过程被停止.什么状态是服务
@H_
197_13@@H_
502_0@
在执行命令服务–status-all之后,我得到了我机器上所有服务的列表.我得到这样的
输出.
@H_
696_15@[ ? ] acpi-fakekey
[ ? ] acpi-support
[ + ] acpid
[ - ] anacron
[ + ] apache2
[ + ] atd
[ - ] bootlogd
什么是?意思?我总是假设一个过程开始的手段,并且 – 意味着过程被停止.什么状态是服务之前?在?
这是我/ proc / version文件的内容,这有助于任何人回答我.
@H_
696_15@Linux version 2.6.32-5-amd64 (Debian 2.6.32-45)
提前致谢!
当/usr/sbin /
service脚本在/etc/init.d下的相关脚本中的case结构中找不到状态行时,将打印
service -status-all
输出中的问号.
如果查看/usr/sbin / service脚本,可以找到这样的if语句:
@H_
696_15@if ! grep -qs "\Wstatus)" "$
serviCE"; then
#printf "
%s %-60s
%s\n" "[?]" "$
serviCE:" "unk
Nown" 1>&2
echo " [ ? ] $
serviCE" 1>&2
con
Tinue
else