Date: Fri, 5 May 2006 08:58:54 GMT From: Artis Caune <Artis.Caune@latnet.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/96818: [PATCH] mail/dspam - rc.d warnings Message-ID: <200605050858.k458wsfW037730@www.freebsd.org> Resent-Message-ID: <200605050900.k4590UBx036730@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 96818 >Category: ports >Synopsis: [PATCH] mail/dspam - rc.d warnings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 05 09:00:30 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Artis Caune >Release: 6.0 >Organization: >Environment: >Description: [root@mansBSD.lv /home/build/dspam]# su -m dspam -c '/usr/local/etc/rc.d/dspam.sh forcestart' /usr/local/etc/rc.d/dspam.sh: WARNING: $dspam_debug is not set properly - see rc.conf(5). >How-To-Repeat: >Fix: *** dspam.in.orig Wed May 3 11:42:17 2006 --- dspam.in Fri May 5 11:50:46 2006 *************** *** 21,26 **** --- 21,33 ---- name="dspam" rcvar=${name}_enable + load_rc_config $name + + #defaults + : ${dspam_enable="NO"} + : ${dspam_debug="NO"} + : ${dspam_pidfile:-/var/run/dspam.pid} + command=%%PREFIX%%/bin/${name} if checkyesno dspam_debug then *************** *** 36,47 **** { kill -HUP `cat $pidfile` } - - load_rc_config $name - - #defaults - : ${dspam_enable="NO"} - : ${dspam_debug="NO"} - : ${dspam_pidfile:-/var/run/dspam.pid} run_rc_command "$1" --- 43,47 ---- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605050858.k458wsfW037730>