#!/bin/sh # chkconfig: 345 88 06 # description: This script opens trafshow window on /dev/tty11 # # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 VT=11 # See how we were called. case "$1" in start) echo -n "Starting trafshow: " open -c $VT -- trafshow-linux -S -s2 RETVAL=$? echo return $RETVAL ;; stop) echo -n "Stopping trafshow: " killproc trafshow-linux [ -x /usr/bin/deallocvt ] && /usr/bin/deallocvt $VT RETVAL=$? echo return $RETVAL ;; restart) "$0" stop; "$0" start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit