Project

General

Profile

« Previous | Next » 

Revision 045a7ff0

Added by Alexis Mousset almost 7 years ago

Fixes #10810: rudder agent start fails on sles12

View differences:

share/lib/common.sh
service="$1"
action="$2"
if [ -x /usr/sbin/service ]; then
if systemctl list-units --type service --all ${service}.service 2>&1 | grep -q "^${service}.service"; then
CMD="systemctl ${action} ${service}"
elif [ -x /usr/sbin/service ]; then
CMD="service ${service} ${action}"
elif [ -x /etc/init.d/${service} ]; then
CMD="/etc/init.d/${service} ${action}"

Also available in: Unified diff