From e585711c5f7e560b32ce3dabab547285faa8b8dc Mon Sep 17 00:00:00 2001 From: branch-fixup Date: Tue, 7 Mar 2006 17:23:51 +0000 Subject: [PATCH] Add files from parent branch HEAD: chat/unrealircd/files/unrealircd.sh --- chat/unrealircd/files/unrealircd.sh | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 chat/unrealircd/files/unrealircd.sh diff --git a/chat/unrealircd/files/unrealircd.sh b/chat/unrealircd/files/unrealircd.sh new file mode 100644 index 000000000000..8459ad7bf688 --- /dev/null +++ b/chat/unrealircd/files/unrealircd.sh @@ -0,0 +1,31 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: unrealircd.sh,v 1.1.1.1 2005/11/29 19:17:03 adrianp Exp $ +# +# PROVIDE: unrealircd +# REQUIRE: DAEMON +# KEYWORD: shutdown +# + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="unrealircd" +rcvar=${name} +command="@PREFIX@/sbin/ircd" +required_files="@UIRCD_HOME@/unrealircd.conf" +pidfile="@UIRCD_HOME@/ircd.pid" +unrealircd_user="@UIRCD_USER@" +unrealircd_group="@UIRCD_GROUP@" +extra_commands="rehash" +rehash_cmd="unrealircd_rehash" + +unrealircd_rehash() +{ + kill -1 `@CAT@ $pidfile` +} + +load_rc_config $name +run_rc_command "$1" -- 2.41.0