Hi,

> As you can see above I added the description.  Don't know why but if you
> skip this one it won't work under chkconfig.  I ran into exactly the
> same problem myself when doing one for my old company.  Second question
> would be do you really nee this to work at runlevels 2 and 4.
> Escpecially 4 since that one isn't used.

Thank you all for your help and suggestions. I have cleanup the code a
little bit now it works. Thanks.

#!/bin/sh
#
# usagent       Start CA BrightStor Linux Backup Agent.
#               This script starts /usr/bin/uagent
#
# chkconfig: 2345 90 20
# description: Startup script for CA BrightStor Linux Backup Agent

. /etc/rc.d/init.d/functions

case "$1" in
  start)
    action "Starting uagent" /usr/bin/uagent start
    ;;
  stop)
   action "Stopping Uagent" /usr/bin/uagent stop
    ;;
  status)
    /usr/bin/uagent status
    ;;
  *)
    gprintf "Usage: %s { start | stop | status }\n" "$0"
    exit 1
  ;;
esac
exit 0




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to