#!/bin/sh - # # $FreeBSD: head/net/pwhois/files/512.pwhois-updatedb.in 384496 2015-04-22 16:07:52Z zi $ # if [ -r /etc/defaults/periodic.conf ]; then . /etc/defaults/periodic.conf source_periodic_confs fi rc=0 case "${daily_pwhois_updatedb_enable:-YES}" in [Nn][Oo]) ;; [Yy][Ee][Ss]) rm /tmp/.pwhois-updatedb.LCK su -fm pwhois -c 'lockf -t0 /tmp/.pwhois-updatedb.lock %%PREFIX%%/sbin/pwhois-updatedb' 1>/dev/null ;; esac exit $rc