diff options
| author | Alexander Barton <alex@barton.de> | 2009-05-05 11:41:26 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2009-05-05 11:41:26 +0200 |
| commit | a83554b572255add47d0694d9e85a301a3a0e6b8 (patch) | |
| tree | 73265d932e142ab4491523fa4ba37954ec07c45c /contrib/ngircd.sh | |
| parent | 627b0b713c52406e50c84bb9459e7794262920a2 (diff) | |
| download | ngircd-a83554b572255add47d0694d9e85a301a3a0e6b8.tar.gz ngircd-a83554b572255add47d0694d9e85a301a3a0e6b8.zip | |
Renamed contrib/ngircd.sh to contrib/ngircd-bsd.sh
Diffstat (limited to 'contrib/ngircd.sh')
| -rw-r--r-- | contrib/ngircd.sh | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/contrib/ngircd.sh b/contrib/ngircd.sh deleted file mode 100644 index e0856463..00000000 --- a/contrib/ngircd.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# PROVIDE: ngircd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON -# KEYWORD: FreeBSD shutdown - -# Add the following line to /etc/rc.conf to enable `ngircd': -# -#ngircd_enable="YES" -# - -. "/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 - # Mount a devfs in the chroot directory if needed - 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 - - # Copy local timezone information if it is not up to date. - 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" - -# -eof- |