Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2013 10:56:18 +0200
From:      Guido Falsi <mad@madpilot.net>
To:        Zeus Panchenko <zeus@gnu.org.ua>, ports@FreeBSD.org
Subject:   Re: smstools3 start script patch
Message-ID:  <525E54B2.1000904@madpilot.net>
In-Reply-To: <20131016104720.85362@relay.ibs.dn.ua>
References:  <20131016104720.85362@relay.ibs.dn.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?525E54B2.1000904>