123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/bin/sh
- . "/etc/rc.subr"
- name="ngircd"
- rcvar=`set_rcvar`
- command="/usr/local/sbin/ngircd"
- command_args=""
- load_rc_config "$name"
- : ${ngircd_enable="NO"}
- : ${ngircd_flags=""}
- required_files="/usr/local/etc/$name.conf"
- pidfile="${ngircd_pidfile:-/var/run/${name}/${name}.pid}"
- if [ ! x"${ngircd_chrootdir}" = x ];then
-
- if [ ! -c ${ngircd_chrootdir}/dev/random \
- -o ! -c ${ngircd_chrootdir}/dev/null ]; then
- umount ${ngircd_chrootdir}/dev 2>/dev/null
- mount_devfs devfs ${ngircd_chrootdir}/dev
- fi
- devfs -m ${ngircd_chrootdir}/dev rule apply hide
- devfs -m ${ngircd_chrootdir}/dev rule apply path null unhide
- devfs -m ${ngircd_chrootdir}/dev rule apply path random unhide
-
- if [ -f /etc/localtime ]; then
- cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
- cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
- fi
- pidfile="${ngircd_chrootdir}${pidfile}"
- fi
- run_rc_command "$1"
|