Date: Thu, 10 Jul 2008 06:52:23 -0700 (PDT) From: =?iso-8859-1?Q?Yves_Gu=E9rin?= <yvesguerin@yahoo.ca> To: ports freebsd <ports@FreeBSD.org> Subject: FreeBSD Port: upsmon-2.1.3 Message-ID: <124731.94899.qm@web56414.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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?124731.94899.qm>