Date: Thu, 10 Jul 2008 08:53:43 -0400 From: yves.guerin@muhc.mcgill.ca To: ports@FreeBSD.org Subject: FreeBSD Port: mgeupsd-0.3_1 Message-ID: <OF3DE77F2E.C2A72B91-ON85257482.0046B4F8-85257482.0046B405@muhc.mcgill.ca>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF3DE77F2E.C2A72B91-ON85257482.0046B4F8-85257482.0046B405>