#!/bin/sh
if [ $# != 1 ]; then
	echo "Usage: $0 {start | stop}"
	exit 1
fi

# which serelc

if [ $1 = "start" ]; then
	serelc --provide syslog
else
	serelc --unprovide syslog
fi

# echo $0 pid = $$
# exit 1

# Note that if you want to play in the need/provide game, then one way
# or another the server needs to get a statuschange message, either
# by uncommenting the line below, or by calling this script via
# something like wrap.sh
#
serelc --statuschange $$ 0
