]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/pwcheck
Fix reference count overflow in mqueuefs.
[FreeBSD/FreeBSD.git] / etc / rc.d / pwcheck
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: pwcheck
7 # REQUIRE: mountcritremote syslogd
8 # BEFORE:  DAEMON
9
10 . /etc/rc.subr
11
12 name="pwcheck"
13 desc="Check password file correctness"
14 start_cmd="pwcheck_start"
15 stop_cmd=":"
16
17 pwcheck_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
27 load_rc_config $name
28 run_rc_command "$1"