[
https://issues.apache.org/jira/browse/VCL-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378260#comment-15378260
]
Andy Kurth commented on VCL-966:
--------------------------------
*sysv-rc-conf* can be used to determine if a SysV service is installed and
enabled:
{noformat}apt-get install sysv-rc-conf{noformat}
*sysv-rc-conf --list*
{noformat}
acpid
apparmor S:on
open-vm-tool 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ssh
xrdp 0:off 1:off 2:on 3:on 4:on 5:on 6:off
{noformat}
I think only the lines with runlevels should be considered.
We'll need to figure out how to code this. It's a bit messy. I don't want to
put anything in SysV.pm that isn't strictly standard SysV. I also don't want
to put SysV-related code in Upstart.pm.
> Ubuntu not detecting SysV-controlled services if chkconfig is not installed
> ---------------------------------------------------------------------------
>
> Key: VCL-966
> URL: https://issues.apache.org/jira/browse/VCL-966
> Project: VCL
> Issue Type: Improvement
> Components: vcld (backend)
> Affects Versions: 2.4.2
> Reporter: Andy Kurth
> Fix For: 2.5
>
>
> SysV-controlled services are not being correctly detected in Ubuntu if the
> _chkconfig_ utility is not installed. An example is xRDP. When installed
> via apt-get, the xRDP service is controlled by SysV. The service appears if
> you run *service --status-all*:
> {noformat} [ + ] xrdp{noformat}
> The code is attempting to call *chkconfig*. On Ubuntu 14 and possibly
> others, this utility is not available on recent versions of Ubuntu.
> As a result, warnings are generated in vcld.log:
> {noformat}
> Linux.pm:command_exists|5567|'chkconfig' command does NOT exist on vm1,
> command: which chkconfig
> Linux.pm:service_exists|3438|'xrdp' service is not controlled by Upstart init
> module (0)
> Linux.pm:service_exists|3443|'xrdp' service does not exist on vm1
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)