From owner-freebsd-ports@FreeBSD.ORG Thu Jul 10 12:53:34 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 BAB60106564A for ; Thu, 10 Jul 2008 12:53:34 +0000 (UTC) (envelope-from yves.guerin@muhc.mcgill.ca) Received: from w2blbe14.muhc.mcgill.ca (ch06cusm00010.MUHC.McGill.CA [198.168.152.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9D4818FC14 for ; Thu, 10 Jul 2008 12:53:34 +0000 (UTC) (envelope-from yves.guerin@muhc.mcgill.ca) Sensitivity: To: ports@FreeBSD.org X-Mailer: Lotus Notes Release 5.0.10 March 22, 2002 Message-ID: From: yves.guerin@muhc.mcgill.ca Date: Thu, 10 Jul 2008 08:53:43 -0400 X-MIMETrack: Serialize by Router on CH06CUSM00010/Serveurs/SSSS(Release 6.5.4FP3|January 09, 2006) at 07/10/2008 08:53:34 AM MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: FreeBSD Port: mgeupsd-0.3_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 12:53:34 -0000 Hello, I redo the rc.d script file. #!/bin/sh # PatrioteBSD ######################################### # JAMAIS TESTE AVEC mgeupsd_enable="yes" # NEVER TESTED WITH mgeupsd_enable="YES" ######################################### # mettre dans /etc/rc.conf: mgeupsd_enable="YES" # PROVIDE: mgeupsd # REQUIRE: # BEFORE: securelevel . /etc/rc.subr name="mgeupsd" mgeupsd_enable=${mgeupsd_enable:-"NO"} rcvar=`set_rcvar` start_cmd="mgeupsd_start" stop_cmd="mgeupsd_stop" mgeupsd_start() { #/usr/local/sbin/mgeupsd -run /usr/local/sbin/powerhandler /dev/cuaa0 echo -n ' jamais teste - never tested - veuillez editer ce fichier $0 - edit this file $0 => mgeupsd' sleep 2 } mgeupsd_stop() { kill `cat /var/run/mgeupsd.pid` rm -f /var/run/mgeupsd.pid rm -f /var/run/powerstatus echo -n ' mgeupsd' } load_rc_config $name run_rc_command "$1" Regards, Yves