my first try with fscd

Mickaël Maillot mickael.maillot at gmail.com
Fri Jul 23 09:42:38 UTC 2010


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 at home.freelooser.fr:/usr/obj/usr/src/sys/FNEUZFS  amd64


More information about the freebsd-hackers mailing list