'Error bash: service: command not found' error when attempting to stop or start RSA Identity Governance & Lifecycle
2 years ago
Originally Published: 2015-03-19
Article Number
000060150
Applies To
RSA Product Set: RSA Identity Governance & Lifecycle
RSA Version/Condition: All
 
Issue
When attempting to start or stop RSA Identity Governance and Lifecycle from the command line, the following error occurs:
 
Error bash: service: command not found

The error is seen both when starting and/or stopping the RSA Identity Governance & Lifecycle application and/or database. For example, this error has been seen after executing any of the following commands:
 
Startup:
service aveksa_server startdb
service aveksa_server start
acm startdb
acm start
Shutdown:
service aveksa_server stopdb
service aveksa_server stop
acm stopdb
acm stop
This error has also been seen when installing RSA Identity Governance & Lifecycle at the point where the installer checks to see if NTP is running.
 
Cause
The shell environment's PATH variable does not include /sbin.

Either the PATH variable has omitted this value or the PATH is not set correctly.

This could also be a result of not passing a hyphen to the su command (- su) or the PATH variable might not be defined for the specific user executing the start/stop commands.
 
Resolution
Investigate with your Linux administrator as to why your PATH variable is not set correctly.
 
Workaround
To workaround this issue temporarily:
  1. Check your PATH to verify that /sbin is missing:
echo $PATH
  1. Append sbin to your PATH variable until a permanent resolution is implemented. 
export PATH=$PATH:/sbin