From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 23 09:42:38 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E2271065687; Fri, 23 Jul 2010 09:42:38 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8FE168FC17; Fri, 23 Jul 2010 09:42:36 +0000 (UTC) Received: by wyj26 with SMTP id 26so5228wyj.13 for ; Fri, 23 Jul 2010 02:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3oq53R78IorB5FyPvg3JkDErXbgHD5uueYVs7dJZG20=; b=ew6DglLOnfW5IO2dYIT/AmUZ/rr9Bc0i+yicQUjNUwTD94R7C1YbkBCxR6LxXDR8H0 lClzEgsC3KNLner22ctawYRT/c2VCeAhfV3ACiXPgFyfo+DUjBldka2zUIESPAS7Vvrh vMVBrAd0DV/CBRckJLJztKMVOPmb1nOD8HSYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=im+4U1NoU8O9/zOrrAKB10UU5ebtISGnZwTZFBcT+YEZ1Omxc+WLxD08eJedW6yisb DpcGLOH3yPNRa6cb6UwTBIxFT0oPoABGy7cIhVFIoBndPCAhfyiuWIb/xz8z9HpadDNb eRy1ARQqW+7YtgmmXbGN1wogZ8d4BonZAtteQ= MIME-Version: 1.0 Received: by 10.227.136.194 with SMTP id s2mr3176893wbt.173.1279876744900; Fri, 23 Jul 2010 02:19:04 -0700 (PDT) Received: by 10.216.187.70 with HTTP; Fri, 23 Jul 2010 02:19:04 -0700 (PDT) Date: Fri, 23 Jul 2010 11:19:04 +0200 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: trhodes@FreeBSD.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: my first try with fscd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 09:42:38 -0000 Hi i try fscd and it looks realy nice. but i need to add a sleep before restart of process to make it works: --- fscd.c.orig 2010-06-17 21:35:48.000000000 +0200 +++ fscd.c 2010-07-23 11:04:18.479760991 +0200 @@ -253,6 +253,7 @@ if (child == 0) { close(1); close(2); + sleep(1); if (execv(argz[0], argz) == -1) { syslog(LOG_ERR, "Could not start %s\n", svs->svname); whithout this, fscd say that the process is restarted but nothing appends. another problem: after a restart, fscd import nothing from previous database. tested on: FreeBSD home.freelooser.fr 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #17 r210105: Thu Jul 15 08:27:38 CEST 2010 root@home.freelooser.fr:/usr/obj/usr/src/sys/FNEUZFS amd64