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-state.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 status $service | grep Active | cut -d':' -f 2- elif hash /etc/init.d/$service 2>/dev/null; then /etc/init.d/$service status else service $service status fi