libral
libral copied to clipboard
Update/create service provider to support service gathering with Upstart on Ubuntu1404
Currently running libral on an Ubuntu1404 host results in no service resources being returned (also tested via libral). Looks like the sysv provider doesn't play nicely with upstart.
$ root@dee8qjpx8rsqkk7:~/ral/bin# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.2 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.2 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
$ root@dee8qjpx8rsqkk7:~/ral/bin# ./ralsh
file::posix
group::groupadd
host::aug
mount::aug
package::apt
ssh_authorized_key::ssh_authorized_key
user::useradd
$ root@dee8qjpx8rsqkk7:~/ral/bin# ./ralsh service
unknown provider: 'service'
run 'ralsh' to see a list of all providers
Looks like it could be down to /etc/init.d/functions
not existing on trusty, instead it uses /lib/lsb/init-functions
. Working on a fix here.
This warrants creating of a dedicated upstart provider unfortunately rather than trying to hack support via the sysv provider.
@lutter is this something you've already looked at in any form?
@johnmccabe no, I haven't looked at upstart yet