fabtools / fabtools

Tools for writing awesome Fabric files
http://fabtools.readthedocs.org/
BSD 2-Clause "Simplified" License
1.25k stars 206 forks source link

require.nginx.server() fail with "Failed to get D-Bus connection: No connection to service manager." #285

Open swasher opened 9 years ago

swasher commented 9 years ago

Trying execute command require.nginx.server() fail with follow log:

[ip] sudo: systemctl start nginx.service
[ip] out: sudo password:
[ip] out: Failed to get D-Bus connection: No connection to service manager.

That's happens under Ubuntu 14.10 and I think that because 14.10 don't load with systemd by default.

tierpod commented 9 years ago

fabtools use command 'which systemctl' for find systemd. You can rename this file if you know what you are doing.

ronnix commented 9 years ago

Ubuntu 14.10 ships with systemd, but nginx still uses a sysvinit script, which confuses fabtools.