Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / etc / rc.d / pwcheck
1 #!/bin/sh
2 #
3 # $NetBSD: pwcheck,v 1.4 2002/03/22 04:33:59 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/pwcheck,v 1.2 2002/06/13 22:14:36 gordon Exp $
5 # $DragonFly: src/etc/rc.d/pwcheck,v 1.3 2005/11/19 21:47:32 swildner Exp $
6 #
7
8 # PROVIDE: pwcheck
9 # REQUIRE: mountcritremote syslogd
10 # BEFORE:  DAEMON
11
12 . /etc/rc.subr
13
14 name="pwcheck"
15 start_cmd="pwcheck_start"
16 stop_cmd=":"
17
18 pwcheck_start()
19 {
20         #       check the password temp/lock file
21         #
22         if [ -f /etc/ptmp ]; then
23                 logger -s -p auth.err \
24                     "password file may be incorrect -- /etc/ptmp exists"
25         fi
26 }
27
28 load_rc_config $name
29 run_rc_command "$1"