Revize 12ef2923
Přidáno uživatelem Ondřej Fibich před téměř 11 roky(ů)
freenetis-monitoring.init.sh | ||
---|---|---|
# Email kliment@freenetis.org #
|
||
# #
|
||
# Name freenetis-monitoring.init.sh #
|
||
# Version 0.9.3 #
|
||
# #
|
||
################################################################################
|
||
|
||
... | ... | |
fi
|
||
}
|
||
|
||
version_monitor ()
|
||
{
|
||
VERSION=`"$MONITORD" version 2>/dev/null`
|
||
|
||
echo $VERSION
|
||
}
|
||
|
||
usage_monitor()
|
||
{
|
||
echo "usage: `echo $0` (start|stop|restart|status)"
|
||
echo "usage: `echo $0` (start|stop|restart|status|version|help)"
|
||
}
|
||
|
||
case "$1" in
|
||
... | ... | |
status_monitor
|
||
exit 0
|
||
;;
|
||
version)
|
||
version_monitor
|
||
exit 0
|
||
;;
|
||
*)
|
||
usage_monitor
|
||
exit 0
|
Také k dispozici: Unified diff
Release 0.9.6. Adds support for getting of version (fixes #640).