#!/bin/sh

# $FreeBSD: ports/sysutils/webmin/files/webmin.sh.sample,v 1.5 2003/01/14 12:21:07 olgeni Exp $

case $1 in

	start)
		LD_PRELOAD=/usr/lib/libpam.so
		export LD_PRELOAD
		if [ -x /usr/local/etc/webmin/start ]; then
			/usr/local/etc/webmin/start >/dev/null
			echo -n ' webmin'
		fi
		exit 0
		;;

	stop)
		if [ -x /usr/local/etc/webmin/stop ]; then
			/usr/local/etc/webmin/stop >/dev/null
			echo -n ' webmin'
		fi
		exit 0
		;;

	*)
		echo "usage: `basename $0` {start|stop}" >&2
		exit 64
		;;
esac
