Hi guys,

I'm seeing something weird.  I maintain a fair number of mailservers at
clients' sites.  Some are Debian Sarge, but most are some version of
SUSE from 9.1 though 10.1 as well as SLES9.  On all of them I run
postfix with amavisd-new and sqlgrey (http://sqlgrey.sourceforge.net/).
sqlgrey has a simple startup script - see below - that I put
in /etc/init.d/

For some reason, on all the SUSE machines, sqlgrey don't start at boot.
I have used insserv to add it to the runlevel, I've made symlinks by
hand to S99 to make sure it starts after the stuff it depends on, I've
en put it in boot.local.  Reboot the box, and again, it's not started.
But when I start it by hand, it starts normally.

I haven't been able to go to one of them and see what comes up on the
screen - most of them can't be switched off during business hours.

Does anyone know why it wouldn't start?

Thanks
Hans

#!/bin/sh
#
# sqlgrey:        Init script for sqlgrey postfix policy service
#
# chkconfig: 345 90 10
# description: SQLgrey is a postfix grey-listing policy service.
# pidfile: /var/run/sqlgrey.pid

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

# See how we were called.
case "$1" in
  start)
        echo -n "Starting SQLgrey: "
        # SQLite put files in the working directory
        cd ~sqlgrey
        sqlgrey -d
#       echo_success
        echo
        ;;

  stop)
        echo -n "Shutting down SQLgrey: "
        sqlgrey -k
#       echo_success
        echo
        ;;

  status)
        status sqlgrey
        ;;

  restart)
        $0 stop
        sleep 1 # hack: missing REUSEADDR from Net::Server?
        $0 start
        ;;

  *)
        echo "Usage: sqlgrey {start|stop|status|restart}"
        exit 1
esac

exit 0

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to