package: sysvinit-utils version: 2.88dsf-13.1+squeeze1 tags: patch "service --status-all" incorrectly detect availability of service status in initscript and show "?". For example, it show "?" for cron. Problem in incorrect regex for detect, that initscript has status command.
$ service --status-all 2>&1 |grep cron [ ? ] cron $ /etc/init.d/cron status Checking periodic command scheduler...done (running). -- with best regards, Alexander Golovko email: alexan...@ankalagon.ru xmpp: alexan...@ankalagon.ru
--- debian/service/service.orig 2012-08-18 15:03:54.953060728 +0400 +++ debian/service/service 2012-08-18 15:04:19.725061121 +0400 @@ -74,7 +74,7 @@ *) if ! is_ignored_file "${SERVICE}" \ && [ -x "${SERVICEDIR}/${SERVICE}" ]; then - if ! grep -qs "\Wstatus)" "$SERVICE"; then + if ! grep -qs "\(^\|\W\)status)" "$SERVICE"; then #printf " %s %-60s %s\n" "[?]" "$SERVICE:" "unknown" 1>&2 echo " [ ? ] $SERVICE" 1>&2 continue
signature.asc
Description: PGP signature