From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FyA06-0002R7-7R for garchives@archives.gentoo.org; Wed, 05 Jul 2006 16:13:18 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k65GAQd8007821; Wed, 5 Jul 2006 16:10:26 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k65G33DH009775 for ; Wed, 5 Jul 2006 16:03:03 GMT Received: by nf-out-0910.google.com with SMTP id o25so1317069nfa for ; Wed, 05 Jul 2006 09:03:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iyeGnHZTZucWUJhkoNfCO/NT++WreEnhNlXcT2pwZJ3LRm54bC9x5hg9zGMumg6acVmghesNdu6fsaYlJB/YnmFsVWkJ7pkQnWgcKex4vDBm4q9ry2rUpw9zDMadQiK2OjOhNs6CbEFJEXi9O5LgJnIzHYkQDd/5fuQ6uDtYnI4= Received: by 10.78.138.14 with SMTP id l14mr2330447hud; Wed, 05 Jul 2006 09:03:03 -0700 (PDT) Received: by 10.78.20.11 with HTTP; Wed, 5 Jul 2006 09:03:03 -0700 (PDT) Message-ID: <7573e9640607050903y67171685r5feb7fbfc0835e4f@mail.gmail.com> Date: Wed, 5 Jul 2006 09:03:03 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] syslog-ng + automatic respawn of target programs In-Reply-To: <1004fb350607042348r1c6992e1ocb30ca9ae27163a4@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060704172843.GA15895@nibiru.local> <7573e9640607041521p3e3cfc2dk5f6f8aa9fface9b8@mail.gmail.com> <1004fb350607042348r1c6992e1ocb30ca9ae27163a4@mail.gmail.com> X-Google-Sender-Auth: 3e428802b1e6c03d X-Archives-Salt: 781233c8-5b38-4227-9cd0-fa47a0016cc1 X-Archives-Hash: 1023009984d07108c533c366ba478ef2 On 7/4/06, thomas blomme wrote: > > http://www.campin.net/syslog-ng/expanded-syslog-ng.conf > > look at the above link, it contains all functions syslog can have Ok. It is also in the documentation installed at /usr/share/doc/syslog-ng-*/html/. So I guess it is just an omission from the man page. Back to the OP's question, the syslog documentation seems to make it clear that it will not respawn the program to prevent DoS attacks. If you want this, you can create a shell script around the program you want to call, and handle any respawns there. A simple implementation might be: $program & pid=$! while wait $pid; do $program & pid=$! done Of course, it would be best to add in some type of abort mechanism in case $program starts dying unexpectedly, so you don't try to exec it 1000's of times per second. -Richard -- gentoo-user@gentoo.org mailing list