Installation of the vmware-appdirector-agent-service_5.0.0.0-0_x86_64.rpm creates the directories in the /opt/vmware-appdirector/agent-bootstrap with bunch of the scripts but script was not able to register the services with the SUSE LINUX 11.2 while installing the agent .
Problem:
I noticed is the
vmware_appdirector_agent comes with below format which is missing some of the
information.
### BEGIN INIT INFO
# Provides:
vmware_appdirector_agent
# Required-Start: $local_fs
$network
# Required-Stop:<Missing Information>
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start
Application Director agent bootstrap service
# Description: Execute
Application Director agent bootstrap process
### END INIT INFO
SLES11v2-001:/opt/vmware-appdirector/agent-bootstrap
# chkconfig --level 2345 vmware_appdirector_agent on
insserv: script jexec is
broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry:
please add even if empty.
insserv: script jexec is
broken: incomplete LSB comment.
insserv: missing
`Required-Stop:' entry: please add even if empty.
insserv: script jexec is
broken: incomplete LSB comment.
SOLUTION:
Where insserv and jexec
init script of the SUSE linux looks for the #Required-Stop
information which is empty and that is why complains saying it is
breaking down. If I update #Required-Stop: $network then I can use the
chkconfig command to register this service. I think rpm needs to be
fixed with below format like
### BEGIN INIT INFO
# Provides:
vmware_appdirector_agent
# Required-Start: $local_fs
$network
# Required-Stop: $network.
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start
Application Director agent bootstrap service
# Description: Execute
Application Director agent bootstrap process
### END INIT INFO
SLES11v2-001:/opt/vmware-appdirector/agent-bootstrap
# chkconfig --level 2345 vmware_appdirector_agent on
SLES11v2-001:/opt/vmware-appdirector/agent-bootstrap
#
Which resolves the issue and
works absolutely Fine.