> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:users-
> [EMAIL PROTECTED] On Behalf Of Rocco Scappatura
> Sent: Tuesday, December 09, 2008 1:05 PM
> To: [email protected]
> Subject: Re: [policyd-users] daemon startup
> 
> > > 10. Fire everything up and browse web gui to configure
> > >
> > > I plan to use Quotas only for now. Configured postfix to use the
> > > daemon on port 10031 and have configured /etc/cluebringer.conf
with
> > > my mysql server settings and desired modules Core, Quota.
> > > Have edited mysql db to set quota fields.
> > >
> > > There is no startup script for the cbpolicyd - this needs to be
> > "fired up"
> > > at boot no?
> >
> > yep ... I've not written any startup scripts yet.
> 
> If it could be worth, I'm using a quite simple startup script..
> 
> =================
> 
> #! /bin/sh
> # v1.0 12-2008, rocco scappatura, Rocco.Scappatura at infracom dot it
> #
> ### BEGIN INIT INFO
> # Provides:       policyd
> # Required-Start:
> # Required-Stop:
> # Default-Start:  2 3 5
> # Default-Stop:   0 1 2 6
> # Description:    Control policydV2 daemon.
> ### END INIT INFO
> 
> # Variables
> PID="/var/run/policyd.pid"
> SBIN="/usr/local/bin/cbpolicyd"
> CONF="/etc/cluebringer.conf"
> WHAT="Policyd V2"
> 
> # Source SuSE config
> . /etc/rc.status
> 
> test -x $SBIN || exit 5
> test -e $CONF || exit 5
> 
> # First reset status of this service
> rc_reset
> 
> # Process request
> case "$1" in
>     start)
>         echo -n "Starting ${WHAT} ${CONF} "
>         ## Start daemon with startproc(8). If this fails
>         ## the echo return value is set appropriate.
>         startproc $SBIN $CONF
>         # Remember status and be verbose
>         rc_status -v
>     ;;
>     stop)
>         echo -n "Shutting down ${WHAT} "
>         ## Stop daemon with killproc(8) and if this fails
>         ## set echo the echo return value.
>         killproc -TERM $SBIN
>         # Remember status and be verbose
>         rc_status -v
>     ;;
>     restart)
>         ## Stop the service and regardless of whether it was
>         ## running or not, start it again.
>         $0 stop
>         $0 start
>         # Remember status and be quiet
>         rc_status
>     ;;
>     status)
>         echo -n "Checking for ${WHAT} "
>         checkproc $SBIN
>         rc_status -v
>     ;;
> 
>     *)
>         echo "Usage: $0 {start|stop|status|restart}"


Sorry.. The script asbove have to be completed with following lines:

        exit 1
    ;;
esac
rc_exit
### END
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to