Grep can't match expected but output all

lyang001@lyang001-OptiPlex-9010:~$ service --status-all |grep dbus
 [ ? ]  acpid
 [ ? ]  acpi-support
 [ ? ]  alsa-restore
 [ ? ]  alsa-store
 [ ? ]  anacron
 [ ? ]  apport
 [ ? ]  atd
 [ ? ]  avahi-daemon
 [ ? ]  bluetooth
 [ ? ]  cgroup-lite
 [ ? ]  console-setup
 [ ? ]  cron
 [ ? ]  cups
 [ ? ]  dbus
 [ ? ]  dmesg
 [ ? ]  dns-clean
 [ ? ]  failsafe-x
 [ ? ]  friendly-recovery
 [ ? ]  glusterfs-server
 [ ? ]  hostname
 [ ? ]  hwclock
 [ ? ]  hwclock-save
 [ ? ]  irqbalance
 [ ? ]  killprocs

any help ?

Lei

It's likely printing to stderr, not stdout, which bypasses grep completely. Redirect stderr into stdout.

service --status-all 2>&1 |grep dbus