/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lo
cal/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bi
n:/root/bin
----- Original Message -----
From: "List Monkey" <[EMAIL PROTECTED]>
To: "Kevin Roberts" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 10:53 PM
Subject: Re: svscan help
> What does
> echo $PATH
> say?
>
> On Wed, 27 Jun 2001, Kevin Roberts wrote:
>
> > Does any know how to fix this error starting svscan?
> >
> > env: invalid option - - P
> > Try `env --help' for more information;
> >
> >
> > #!/bin/sh
> >
> > PATH=$PATH:/usr/local/bin:/var/qmail/bin
> > case "$1" in
> > start)
> > echo -n "Starting djb services: svscan"
> > cd /service
> > env - PATH="$PATH" svscan &
> > echo $! > /var/run/svscan.pid
> > echo "."
> > ;;
> > stop)
> > echo -n "Stopping djb services: svscan"
> > kill `cat /var/run/svscan.pid`
> > echo -n "services "
> > svc -dx /service/*
> > echo -n " logging"
> > svc -dx /service/*/log
> > echo "."
> > ;;
> > restart)
> > $0 stop
> > $0 start
> > ;;
> > *)
> > echo 'Usage: svscan {start|stop|restart}'
> > exit 1
> > esac
> > exit 0
> >
> >