Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2010 16:40:03 GMT
From:      "Cristiano Rolim" <cristianorolim@hotmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/144253: [PATCH] sysutils/rsyslog: -a is obsolete in rc.d script
Message-ID:  <201003051640.o25Ge3eL061117@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/144253; it has been noted by GNATS.

From: "Cristiano Rolim" <cristianorolim@hotmail.com>
To: <bug-followup@FreeBSD.org>,
	<pgollucci@freebsd.org>
Cc:  
Subject: Re: ports/144253: [PATCH] sysutils/rsyslog: -a is obsolete in rc.d script
Date: Fri, 5 Mar 2010 13:36:41 -0300

 I am getting the following with this patch:
 
 [root@bsd8 /usr/ports/sysutils/rsyslog5]# /usr/local/etc/rc.d/rsyslogd start
 rsyslogd_precmd: not found
 /usr/local/etc/rc.d/rsyslogd: WARNING: failed precmd routine for rsyslogd
 
 Removing the line left all thing running well.
 
 I am re-sending the patch without the line.
 
 --
 Cristiano Rolim Pereira
 
 
 --- ../rsyslog5.orig/files/rsyslogd.in	2010-02-26 00:06:10.000000000 -0300
 +++ files/rsyslogd.in	2010-03-05 13:33:12.000000000 -0300
 @@ -20,59 +20,6 @@
  pidfile="${rsyslogd_pidfile}"
  command_args="-i ${pidfile} -f ${rsyslogd_config}"
  required_files="${rsyslogd_config}"
 -start_precmd="rsyslogd_precmd"
  extra_commands="reload"
 
 -sockfile="/var/run/rsyslogd.sockets"
 -evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\""
 -altlog_proglist="named"
 -
 -rsyslogd_precmd()
 -{
 -	local _l _ldir
 -
 -	#	Transitional symlink for old binaries
 -	#
 -	if [ ! -L /dev/log ]; then
 -		ln -sf /var/run/log /dev/log
 -	fi
 -	rm -f /var/run/log
 -
 -	#	Create default list of syslog sockets to watch
 -	#
 -	( umask 022 ; > $sockfile )
 -
 -	#	If running named(8) or ntpd(8) chrooted, added appropriate
 -	#	syslog socket to list of sockets to watch.
 -	#
 -	for _l in $altlog_proglist; do
 -		eval _ldir=\$${_l}_chrootdir
 -		if checkyesno `set_rcvar $_l` && [ -n "$_ldir" ]; then
 -			echo "${_ldir}/var/run/log" >> $sockfile
 -		fi
 -	done
 -
 -	#	If other sockets have been provided, change run_rc_command()'s
 -	#	internal copy of $rsyslogd_flags to force use of specific
 -	#	rsyslogd sockets.
 -	#
 -	if [ -s $sockfile ]; then
 -		echo "/var/run/log" >> $sockfile
 -		eval $evalargs
 -	fi
 -
 -	return 0
 -}
 -
 -set_socketlist()
 -{
 -	local _s _socketargs
 -
 -	_socketargs=
 -	for _s in `cat $sockfile | tr '\n' ' '` ; do
 -		_socketargs="-a $_s $_socketargs"
 -	done
 -	echo $_socketargs
 -}
 -
  run_rc_command "$1"
 



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