Date: Wed, 31 Aug 2005 11:58:13 +0200 (CEST) From: hr <asher@raout.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/85564: ircd-hybrid init script Message-ID: <200508310958.j7V9wDVZ056350@backdoor.raout.org> Resent-Message-ID: <200509011030.j81AUFlv007083@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85564 >Category: ports >Synopsis: ircd-hybrid init script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Sep 01 10:30:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: hr >Release: FreeBSD 5.4-RELEASE i386 >Organization: >Environment: System: FreeBSD backdoor.raout.org 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The actual init script of ircd-hybrid looks really old fashioned, it needs a rewrite to be compatible with the rc.d system. >How-To-Repeat: Just look into /usr/ports/irc/ircd-hybrid/files/ircd-hybrid.sh >Fix: The following file is a new init script that is using the rc.d facilities. --- cut here --- file: /usr/ports/irc/ircd-hybrid/files/ircd-hybrid.sh #!/bin/sh # PROVIDE: ircd-hybrid # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: FreeBSD shutdown # To get ircd-hybrid enabled at boot, add the following lines to /etc/rc.conf : # ircd_hybrid_enable (bool): Set to "NO" by default. # Set it to "YES" to enable ircd-hybrid. . /etc/rc.subr name="ircd_hybrid" rcvar=`set_rcvar` command=/usr/local/bin/ircd pidfile=/var/run/ircd.pid required_files=/usr/local/etc/ircd-hybrid/ircd.conf start_precmd=pid_touch stop_postcmd=pid_rm [ -z "$ircd_hybrid_enable" ] && ircd_hybrid_enable=NO [ -z "$ircd_hybrid_user" ] && ircd_hybrid_user=ircd load_rc_config $name pid_touch () { touch $pidfile chown $ircd_hybrid_user $pidfile } pid_rm () { rm $pidfile } run_rc_command "$1" --- cut here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508310958.j7V9wDVZ056350>