#!/bin/sh # # $FreeBSD: head/irc/ngircd/files/ngircd.in 340872 2014-01-24 00:14:07Z mat $ # # PROVIDE: ngircd # REQUIRE: DAEMON # # Add the following lines to /etc/rc.conf to run ngircd: # # ngircd_enable (bool): Set it to "YES" to enable ngircd. # Default is "NO". # ngircd_conf (file): Set local of config file. # Default is "%%PREFIX%%/etc/ngircd.conf". # ngircd_flags (flags): Set extra flags here. More options in ngircd(1) # Default is empty "". # . /etc/rc.subr name="ngircd" rcvar="ngircd_enable" load_rc_config $name : ${ngircd_enable="NO"} : ${ngircd_conf="%%PREFIX%%/etc/ngircd.conf"} required_files="${ngircd_conf}" command=%%PREFIX%%/sbin/ngircd command_args="-f ${ngircd_conf}" run_rc_command "$1"