From owner-freebsd-ports@FreeBSD.ORG Thu Jul 10 14:19:05 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10DC31065670 for ; Thu, 10 Jul 2008 14:19:05 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: from web56414.mail.re3.yahoo.com (web56414.mail.re3.yahoo.com [216.252.111.93]) by mx1.freebsd.org (Postfix) with SMTP id CB8C48FC18 for ; Thu, 10 Jul 2008 14:19:04 +0000 (UTC) (envelope-from yvesguerin@yahoo.ca) Received: (qmail 95927 invoked by uid 60001); 10 Jul 2008 13:52:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=e1N1WkI4VLOaBkxUfKd3q3DykaGdZgNJK5xQeq501NCX6ZgMRVn6LcXJyMH/JQcibB01nAjodT15PtK+JAgPItZH1WF4uBBlTclldrrASBOx47Z8qMjkPr+KZoNucNoaRP+EXcypGksNZdFVQLR9BNPMTgzJv7zT3y6D38mLOhY=; Received: from [198.168.152.20] by web56414.mail.re3.yahoo.com via HTTP; Thu, 10 Jul 2008 06:52:23 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Thu, 10 Jul 2008 06:52:23 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= To: ports freebsd MIME-Version: 1.0 Message-ID: <124731.94899.qm@web56414.mail.re3.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: FreeBSD Port: upsmon-2.1.3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yvesguerin@yahoo.ca List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 14:19:05 -0000 Hello, I redo the rc.d script #!/bin/sh # PatrioteBSD - Yves Guerin yvesguerin@yahoo.ca - 2008-07-10 ######################################### # JAMAIS TESTE AVEC upsmon_enable=3D"YES" # NEVER TESTED WITH upsmon_enable=3D"YES" ######################################### # put into /etc/rc.conf: upsmon_enable=3D"YES" # PROVIDE: upsmon # REQUIRE: DAEMON # BEFORE: shutdown . /etc/rc.subr name=3D"upsmon" upsmon_enable=3D${upsmon_enable:-"NO"} rcvar=3D`set_rcvar` start_cmd=3D"upsmon_start" stop_cmd=3D"upsmon_stop" upsmon_start() { =A0=A0=A0=A0=A0=A0=A0 # see /usr/local/share/doc/upsmon/INSTALL for command= line option details =A0=A0=A0=A0=A0=A0=A0 if [ -x /usr/local/sbin/upsmond ]; then =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /usr/local/sbin/upsmond -p /d= ev/cuaa0 2>&1 > /dev/null && echo -n ' upsmond' =A0=A0=A0=A0=A0=A0=A0 fi } upsmon_stop() { =A0=A0=A0=A0=A0=A0=A0 killall upsmond && echo -n ' upsmond' } load_rc_config $name run_rc_command "$1" Regards Yves Guerin =0A=0A=0A ____________________________________________________________= _________________ =0AEnvoyez avec Yahoo! Mail. Une boite mail plus intellig= ente http://mail.yahoo.fr