From owner-freebsd-questions@freebsd.org Wed Sep 9 07:20:11 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52BDDA00D17 for ; Wed, 9 Sep 2015 07:20:11 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 32C4E1A2A for ; Wed, 9 Sep 2015 07:20:11 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: by mailman.ysv.freebsd.org (Postfix) id 32177A00D16; Wed, 9 Sep 2015 07:20:11 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31AC0A00D15 for ; Wed, 9 Sep 2015 07:20:11 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C29691A1F for ; Wed, 9 Sep 2015 07:20:10 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id E44CFD7882 for ; Wed, 9 Sep 2015 14:20:00 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1441783199; x=1443597600; bh=TH36COTSN24NbxiV92k6DM oVXRrQsRXnqt6eXZIn2Wc=; b=Hk8vBg9aW12uBggXm/ZgSW34Lfbjc7lW4zwQIX BZfyLO/B0gLyynnC8P2WJM2mU4jf+0E7VfXNo4/7asY5o5V5OLZuIxl+82rheCj8 DVNmQA8w/VmdmeGNaHuvRDEsHIKyvOC6ozXoUiC96ORTt8H9jmCR7oBzU7Vtlhbu 9JWuA= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gOqvMGQuZxzY for ; Wed, 9 Sep 2015 14:19:59 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 11DB3D7881 for ; Wed, 9 Sep 2015 14:19:58 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.7/8.14.7/Submit) id t897JvjF046534; Wed, 9 Sep 2015 14:19:57 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: questions@freebsd.org Subject: One daemon not starting in /etc/rc.local Date: Wed, 09 Sep 2015 14:19:57 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2015 07:20:11 -0000 Hi, I am at lost. In /etc/rc.local I have: # REQUIRE: networking DAEMON FILESYSTEMS devfs # PROVIDE: p0f recover-backup count-stats echo iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii # start the OS fingerprint analyzer # -l means on line per record! /usr/local/bin/p0f -i vmx0 'tcp dst port 25' 2>&1|/usr/local/bin/p0f-analyzer.pl 2345 & echo iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii At boot I see the 2 lines of iii but p0f is not started. If I copy/paste in sheel the line /usr/local/bin/p0f etc. it starts, prints the start-up message and runs happilly. There must be a trivial error, but I can't see it, so any help will be greatly appreciated. TIA. Olivier --