Path : /proc/2/cwd/proc/3/root/proc/3/task/3/root/proc/3/root/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/3/root/proc/3/task/3/root/proc/3/root/var/lib/zabbix/service-autostart.sh |
#!/bin/bash if [ -n "$1" ]; then service=$1 else echo "Please provide service name" exit 1 fi if hash systemctl 2>/dev/null; then systemctl is-enabled $service elif hash chkconfig 2>/dev/null; then chkconfig --list | grep $service | awk '{ print $5}' else service --status-all > /tmp/allout.txt 2>&1 && cat /tmp/allout.txt | grep $service fi