Date: Thu, 01 Jun 2006 18:22:44 -0400 From: Paul Murphy <paul.murphy@cogeco.ca> To: gkovesdan@t-hosting.hu Cc: freebsd-ports@freebsd.org Subject: security/amavisd-new startup script Message-ID: <447F68B4.7050503@cogeco.ca>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------030204040006090808030206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I need to keep the amavisd-new pid file in a location other than the default (/var/amavis/amavisd.pid), so I have rewritten the amavis rc script to include a knob for 'pidfile'. Please consider the attached file for the amavisd-new port. --------------030204040006090808030206 Content-Type: text/plain; name="amavisd" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="amavisd" #!/bin/sh # # $FreeBSD: ports/security/amavisd-new/files/amavisd.sh.in,v 1.3 2006/02/20 20:47:36 dougb Exp $ # # PROVIDE: amavisd # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable amavisd: # #amavisd_enable="YES" # . /etc/rc.subr name=amavisd rcvar=`set_rcvar` load_rc_config $name # Set defaults : ${amavisd_enable:="NO"} pidfile=${amavisd_pid:-"/var/amavis/amavisd.pid"} command=/usr/local/sbin/amavisd > /dev/null 2>&1 required_files=/usr/local/etc/amavisd.conf stop_postcmd=stop_postcmd stop_postcmd() { rm -f $pidfile } run_rc_command "$1" --------------030204040006090808030206 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-Description: avast info --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0622-3, 01/06/2006 Tested on: 01/06/2006 6:22:50 PM avast! - copyright (c) 1988-2006 ALWIL Software. http://www.avast.com --------------030204040006090808030206--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447F68B4.7050503>