Project

General

Profile

Actions

Bug #10810

closed

rudder agent start fails on sles12

Added by Janos Mattyasovszky almost 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
35
Name check:
Fix check:
Regression:

Description

On a SLES12 SP2 system after the initial installation of the agent 4.1.3:

vm00049:/home/cloud # rudder agent start
rudder-agent is neither service nor target!?
error: start service rudder-agent failed

This is because /sbin/service rudder-agent start is determined as default to be called by service_action:

if [ -x /usr/sbin/service ]; then
  CMD="service ${service} ${action}" 
elif [ -x /etc/init.d/${service} ]; then
  CMD="/etc/init.d/${service} ${action}" 
elif [ "${action}" = "start" ] && [ -x /usr/bin/startsrc ]; then
  CMD="startsrc -s ${service}" 
elif [ "${action}" = "stop" ] && [ -x /usr/bin/stopsrc ]; then
  CMD="stopsrc -s ${service}" 
fi

However, service does use systemd (at least in sles12 sp2):

vm00049:/home/cloud # bash -x /sbin/service rudder-agent status                      
...
+ is_service rudder-agent
++ systemctl --full --no-legend --no-pager --type=service --property=LoadState show rudder-agent.service
+ local state=LoadState=not-found
+ test LoadState=not-found = LoadState=loaded
+ is_target rudder-agent
++ systemctl --full --no-legend --no-pager --type=target --property=LoadState show rudder-agent.target
+ local state=LoadState=not-found
+ test LoadState=not-found = LoadState=loaded
+ echo 'rudder-agent is neither service nor target!?'
rudder-agent is neither service nor target!?
+ return 1


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #10758: No report on Debian 8RejectedActions
Actions

Also available in: Atom PDF