Date: Thu, 10 Jul 2008 06:50:36 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= <yvesguerin@yahoo.ca> To: ports@FreeBSD.org Subject: FreeBSD Port: upsd-2.0.1.6_1 Message-ID: <490870.12555.qm@web56409.mail.re3.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hello, I redo the rc.d script #!/bin/sh # PatrioteBSD - Yves Guerin - ygvesguerin@yah00.ca - 2008-07-10 ######################################### # JAMAIS TESTE AVEC upsd_enable=3D"yes" # NEVER TESTED WITH upsd_enable=3D"YES" ######################################### # mettre dans /etc/rc.conf: upsd_enable=3D"YES" # PROVIDE: upsd # REQUIRE: DAEMON # BEFORE: shutdown . /etc/rc.subr name=3D"upsd" upsd_enable=3D${upsd_enable:-"NO"} rcvar=3D`set_rcvar` start_cmd=3D"upsd_start" stop_cmd=3D"upsd_stop" upsd_start() { =A0=A0=A0=A0=A0=A0=A0 [ -x /usr/local/sbin/upsd ] && /usr/local/sbin/upsd &= & echo -n ' upsd' } upsd_stop() { =A0=A0=A0=A0=A0=A0=A0=A0 [ -f /var/run/upsd.pid ] && kill -QUIT `cat /var/r= un/upsd.pid` && echo -n ' upsd' } load_rc_config $name run_rc_command "$1" Yves Guerin =0A=0A=0A ____________________________________________________________= _________________ =0AEnvoyez avec Yahoo! Mail. Une boite mail plus intellig= ente http://mail.yahoo.fr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?490870.12555.qm>