Allow chkprintcap(8) to be run before lpd is started. Disabled by

default for now.  Default flags create missing directories.

Remove comment about doing this in etc/rc.d/var.

Unlike in the PR, I chose to do this in the lpd script where we reliably
have /usr available.

PR:		conf/71488
Submitted by:	RZ-FreeBSD0904 at fh-karlsruhe dot de
This commit is contained in:
Brooks Davis 2005-03-02 02:46:47 +00:00
parent 890005bf8a
commit c1c1542199
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142969
3 changed files with 10 additions and 2 deletions

View file

@ -432,6 +432,8 @@ cron_flags="" # Which options to pass to the cron daemon.
lpd_enable="NO" # Run the line printer daemon.
lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one.
lpd_flags="" # Flags to lpd (if enabled).
chkprintcap_enable="NO" # Run chkprintcap(8) before running lpd.
chkprintcap_flags="-d" # Create missing directories by default.
usbd_enable="NO" # Run the usbd daemon.
usbd_flags="" # Flags to usbd (if enabled).
dumpdev="NO" # Device name to crashdump to (or NO).

View file

@ -14,6 +14,14 @@ name="lpd"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
required_files="/etc/printcap"
start_precmd="_chkprintcap"
_chkprintcap()
{
if checkyesno chkprintcap_enable ; then
/usr/sbin/chkprintcap ${chkprintcap_flags}
fi
}
load_rc_config $name
run_rc_command "$1"

View file

@ -46,8 +46,6 @@ _populate_var()
/usr/sbin/mtree -deU -f /etc/mtree/BSD.sendmail.dist -p / > /dev/null
;;
esac
# XXX: should create spool dirs for lpd
}
# If we do not have a writable /var, create a memory filesystem for /var