smstools3 start script patch
Guido Falsi
mad at madpilot.net
Wed Oct 16 08:56:26 UTC 2013
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 at madpilot.net>
More information about the freebsd-ports
mailing list