libral icon indicating copy to clipboard operation
libral copied to clipboard

Update/create service provider to support service gathering with Upstart on Ubuntu1404

Open johnmccabe opened this issue 6 years ago • 4 comments

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

johnmccabe avatar Oct 09 '17 14:10 johnmccabe

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.

johnmccabe avatar Oct 09 '17 14:10 johnmccabe

This warrants creating of a dedicated upstart provider unfortunately rather than trying to hack support via the sysv provider.

johnmccabe avatar Oct 09 '17 16:10 johnmccabe

@lutter is this something you've already looked at in any form?

johnmccabe avatar Oct 09 '17 16:10 johnmccabe

@johnmccabe no, I haven't looked at upstart yet

lutter avatar Oct 09 '17 17:10 lutter