"Fossies" - the Fresh Open Source Software Archive

Member "lmon-1.2/examples/lmon.init" (18 Apr 2005, 239 Bytes) of package /linux/privat/old/lmon-1.2.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 user="monuser"
    4 lmonhome="/home/monuser/lmon"
    5 
    6 case $1 in
    7 start)
    8     su - $user -c "$lmonhome/control.pl start"
    9     ;;
   10 stop)
   11     su - $user -c "$lmonhome/control.pl stop"
   12     ;;
   13 status)
   14     su - $user -c "$lmonhome/control.pl status"
   15     ;;
   16 esac