On 24.08.2012 15:48, Michael Biebl wrote:
> 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.

Found another occurence of this problem in invoke-rc.d.

Patch for invoke-rc.d attached.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/debian/src/sysv-rc/sbin/invoke-rc.d b/debian/src/sysv-rc/sbin/invoke-rc.d
index 7712098..6b7c93e 100644
--- a/debian/src/sysv-rc/sbin/invoke-rc.d
+++ b/debian/src/sysv-rc/sbin/invoke-rc.d
@@ -269,7 +269,7 @@ esac
 
 # If we're running on upstart and there's an upstart job of this name, do
 # the rest with upstart instead of calling the init script.
-if which initctl >/dev/null && initctl version | grep -q upstart \
+if which initctl >/dev/null && initctl version 2>/dev/null | grep -q upstart \
    && [ -e "$UPSTARTDIR/${INITSCRIPTID}.conf" ]
 then
     is_upstart=1

Attachment: 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

Reply via email to