#!/bin/sh
# ATSlog version 2.0 build 168 www.atslog.dp.ua  
# Copyright (C) 2003 Denis CyxoB www.yamiyam.dp.ua
# Basic support for IRIX style chkconfig

###
# chkconfig: 235 80 01
# description: Manages the services needed to run ATSlog software
###
#
# ALTlinux start script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:.
prog=ATSlog

# Source function library.
. /etc/init.d/functions

# Reading config file
if [ -r /etc/atslog.conf ]; then
    . /etc/atslog.conf
else
    echo "Can't open config file"
    exit 1
fi

#   
PATH=$PATH:$bindir:$sharedir

case "$1" in
start)
    action $"Starting $prog: " $bindir/$masterscript start
    ;;
stop)
    action $"Stopping $prog: " $bindir/$masterscript stop
    ;;
restart)
    action $"Restarting $prog: " $bindir/$masterscript restart
    ;;
status)
    action $"Status $prog: " $bindir/$masterscript
    ;;
*)
  echo "Usage: `basename $0` {start|stop|restart|status}"
    ;;
esac

exit $?
