Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 12ef2923

Přidáno uživatelem Ondřej Fibich před více než 10 roky(ů)

Release 0.9.6. Adds support for getting of version (fixes #640).

Zobrazit rozdíly:

deb/changelog
freenetis-monitoring (0.9.6) stable; urgency=hight
* Improoves DEB package condition
-- Ondrej Fibich <ondrej.fibich@gmail.com> Thu, 16 Jan 2014 19:16:55 +0100
freenetis-monitoring (0.9.5) stable; urgency=hight
* Fixes dependency issue for killall (#565)
-- Ondrej Fibich <ondrej.fibich@gmail.com> Sat, 06 Apr 2013 12:59:28 +0200
freenetis-monitord.sh
# email kliment@freenetis.org #
# #
# name freenetis-monitord.sh #
# version 0.9.3 #
# version 0.9.6 #
# #
################################################################################
# Version
VERSION="0.9.6"
#Load variables from config file
CONFIG=/etc/freenetis/freenetis-monitoring.conf
......
echo -n "$IP"
}
# Vesion info? Only possible arg.
if [ $# -eq 1 ]; then
if [ "$1" == "version" ]; then
echo "$VERSION"
exit 0
fi
fi
# Load variables
if [ -e $CONFIG ]; then
freenetis-monitoring.conf
# email kliment@freenetis.org #
# #
# name freenetis-monitoring.conf #
# version 0.9.3 #
# #
################################################################################
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