Multiword "command" var in rc.d/*.sh script
Good day! What is the best way to support multiword "command" var in rc.d scripts? My current problem is with dns/maradns port which I'm upgrading to use maradns stock daemonizer instead of "| logger &" hack. I'd like to specify "command" var as "${prefix}/bin/duende ${prefix}/sbin/maradns" where duende(8) is the daemonizer. When I do this and use the script to start maradns I get these two errors: = ~/work/ports/maradns[0]# /usr/local/etc/rc.d/maradns.sh start /usr/local/etc/rc.d/maradns.sh: WARNING: $command_interpreter /usr/local/sbin/maradns != ELF [: /usr/local/bin/duende: unexpected operator Starting maradns. = This happens because _find_processes() function in /etc/rc.subr splits ${command} and thinks I'm searching for "/usr/local/bin/duende" script run via "/usr/local/sbin/maradns" interpreter. I cannot set "procname" var to "${prefix}/bin/duende" because there are other services which will be started via duende. And _find_processes() is designed to be able to match only first word from command column of ps(1) output unless the daemon is run via interpreter. I implemented some setproctitle(2) hacks inside duende so that it includes all the relevant information in the first word ("/usr/local/bin/duende_/usr/local/sbin/maradns") but I don't feel it's ok to fix problems in rc.subr with such dirty tricks. Thanks for your advices! -- Alex Kapranoff, $n=["1another7Perl213Just3hacker49"=~/\d|\D*/g]; $$n[0]={grep/\d/,@$n};print"@$n{1..4}\n" ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD Port: maradns-1.2.10
Sam Trenholme wrote: Hey, guys, the 1.2.10 release of MaraDNS is out of date. Please update the port to MaraDNS 1.2.12.04. If Alex doesn't want to do this, will Sam, I'll upgrade the port right away. Thanks for the nudge and pardon my delays. someone else please step up to plate to do it. I myself have ported MaraDNS to FreeBSD, so a compile is a "./configure; make; make install". If you want to change the default UID or GID, this is a simple edit to MaraDns.h. The problem is that 1.2.10 has bugs I have long since fixed, but FreeBSD users still send me bug reports since the FreeBSD port is out of date. Thank you for your time and interest in MaraDNS, i emailed the maintainer about this about 2 weeks ago and got nothing back from him. Eric, I've never heard from you :( Probably your mail was eaten by a spam filtering grue on the way. maradns is excellent by the way! Yes, ++maradns. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"