Path : /proc/2/task/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/task/2/cwd/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