1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/sysutils/webmin/files/webmin.sh.in
Jimmy Olgeni fd27bdf0d1 Preload libpam.so.1 in the startup script so that PAM authentication will
actually work.

Submitted by:	MikeM <MyRaQ@mgm51.com>

Add dependency on security/p5-Authen-PAM, and change BUILD_DEPENDS to
RUN_DEPENDS (perl modules are needed at runtime too...).

Add proper return codes to the startup script.
2002-02-24 11:26:31 +00:00

30 lines
432 B
Bash

#!/bin/sh
# $FreeBSD$
case $1 in
start)
LD_PRELOAD=/usr/lib/libpam.so.1
export LD_PRELOAD
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start >/dev/null
echo -n ' webmin'
fi
exit 0
;;
stop)
if [ -x !!PREFIX!!/etc/webmin/stop ]; then
!!PREFIX!!/etc/webmin/stop >/dev/null
echo -n ' webmin'
fi
exit 0
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac