tags 685779 + patch thanks I get the following if I run service on a system with upstart installed but not running: # service anacron status initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
Basically same problem as in #682032 Simple patch attached. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/debian/service/service b/debian/service/service
index 693bc6a..d611bf9 100755
--- a/debian/service/service
+++ b/debian/service/service
@@ -116,7 +116,7 @@ while [ $# -gt 0 ]; do
done
if [ -r "/etc/init/${SERVICE}.conf" ] && which initctl >/dev/null \
- && initctl version | grep -q upstart
+ && initctl version 2>/dev/null | grep -q upstart
then
# Upstart configuration exists for this job and we're running on upstart
case "${ACTION}" in
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-sysvinit-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

