head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	98.11.18.21.55.15;	author adam;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh
#
# logfilterd    log filtering daemon
#
# Author:       Adam Spiers <adam.spiers@@new.ox.ac.uk>
#

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

# See how we were called.
case "$1" in
  start)
	touch /var/lock/subsys/logfilterd
	echo -n "Starting logfilterd: "

        # Save basename.
        base='logfilterd'

        # See if it's already running.
        [ "`pidofproc $base`" != "" ] && return

	# echo basename of the program.
	echo -n "$base "

	# make sure it doesn't core dump anywhere; while this could mask
	# problems with the daemon, it also closes some security problems
	ulimit -c 0

	# And start it up.
	/usr/local/logfilterd/logfilterd &

	echo
	;;
  stop)
	echo -n "Stopping logfilterd: "
	killproc logfilterd
	echo
	rm -f /var/lock/subsys/logfilterd
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  status)
	status logfilterd
	;;
  *)
	echo "Usage: logfilterd {start|stop|restart|reload|status}"
	exit 1
esac

exit 0

@
