From owner-freebsd-ports@FreeBSD.ORG Wed Oct 16 08:56:26 2013 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 37F7210D for ; Wed, 16 Oct 2013 08:56:26 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from winston.madpilot.net (winston.madpilot.net [78.47.75.155]) by mx1.freebsd.org (Postfix) with ESMTP id EADE12C11 for ; Wed, 16 Oct 2013 08:56:25 +0000 (UTC) Received: from winston.madpilot.net (localhost [127.0.0.1]) by winston.madpilot.net (Postfix) with ESMTP id 3d06n42rMzzFTyg; Wed, 16 Oct 2013 10:56:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at madpilot.net Received: from winston.madpilot.net ([127.0.0.1]) by winston.madpilot.net (winston.madpilot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8b5s5ISzAMfu; Wed, 16 Oct 2013 10:56:22 +0200 (CEST) Received: from vwg82.hq.ignesti.it (unknown [77.246.14.163]) by winston.madpilot.net (Postfix) with ESMTPSA; Wed, 16 Oct 2013 10:56:22 +0200 (CEST) Message-ID: <525E54B2.1000904@madpilot.net> Date: Wed, 16 Oct 2013 10:56:18 +0200 From: Guido Falsi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Zeus Panchenko , ports@FreeBSD.org Subject: Re: smstools3 start script patch References: <20131016104720.85362@relay.ibs.dn.ua> In-Reply-To: <20131016104720.85362@relay.ibs.dn.ua> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 08:56:26 -0000 On 10/16/13 09:47, Zeus Panchenko wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi, > > comms/smstools3 startscript prevents syslog using, here is the patch: > > - --- smsd~ 2013-10-16 10:39:04.038927017 +0300 > +++ smsd 2013-10-16 10:41:46.027133115 +0300 > @@ -19,13 +19,12 @@ > : ${smsd_enable="NO"} > : ${smsd_pidfile="/var/run/smsd/smsd.pid"} > : ${smsd_infofile="/var/run/smsd/smsd.working"} > - -: ${smsd_logfile=""} > : ${smsd_config="/usr/local/etc/smsd.conf"} > : ${smsd_user="uucp"} > : ${smsd_group="dialer"} > > pidfile=${smsd_pidfile} > command="/usr/local/bin/smsd" > - -command_args="-c${smsd_config} -p${smsd_pidfile} -i${smsd_infofile} -l${smsd_logfile} -u${smsd_user} -g${smsd_group}" > +command_args="-c${smsd_config} -p${smsd_pidfile} -i${smsd_infofile} -u${smsd_user} -g${smsd_group}" > > run_rc_command "$1" the source fies contain the following line: if (filename==0 || filename[0]==0 || strcmp(filename,"syslog")==0 || strcmp(filename,"0")==0) the third condition means that setting smsd_logfile=syslog in rc.conf will let you use syslog. (did not test it, but the code cannot lie...Usually :) ) -- Guido Falsi