xref: /freebsd/libexec/rc/rc.d/pwcheck (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: pwcheck
7# REQUIRE: mountcritremote syslogd
8# BEFORE:  DAEMON
9
10. /etc/rc.subr
11
12name="pwcheck"
13desc="Check password file correctness"
14start_cmd="pwcheck_start"
15stop_cmd=":"
16
17pwcheck_start()
18{
19	#	check the password temp/lock file
20	#
21	if [ -f /etc/ptmp ]; then
22		logger -s -p auth.err \
23		    "password file may be incorrect -- /etc/ptmp exists"
24	fi
25}
26
27load_rc_config $name
28run_rc_command "$1"
29