From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 15 11:23:35 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA39F106566C; Thu, 15 Mar 2012 11:23:35 +0000 (UTC) (envelope-from gnrp@komkon2.de) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id 660538FC18; Thu, 15 Mar 2012 11:23:35 +0000 (UTC) X-Envelope-From: gnrp@komkon2.de Received: from adolfputzen (laptopecke.physik-pool.tu-berlin.de [130.149.58.159]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id q2FBNRig024422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 15 Mar 2012 12:23:28 +0100 Date: Thu, 15 Mar 2012 12:23:19 +0100 From: Julian Djamil Fagir To: freebsd-hackers@freebsd.org Message-ID: <20120315122319.156ba444@adolfputzen> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.14.7; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/hZ.X.bflZ/QBtp69f=6j5cs"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Mailman-Approved-At: Thu, 15 Mar 2012 12:15:02 +0000 Cc: Tom Rhodes Subject: Updating fscd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org, Julian Djamil Fagir List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 11:23:35 -0000 --Sig_/hZ.X.bflZ/QBtp69f=6j5cs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, fscd by Tom Rhodes (see http://people.freebsd.org/~trhodes/fsc/) is a *very* nice tool for administrators, and I want to use it with our computers. But there were some usability flaws and he unfortunately didn't have time to continue working on it. These are my modifications, based on the last version he worked on: * there is a configuration file with one service per line, which should be monitored when starting up. * there is no database anymore, and no pidfiles being saved. You just need the service name (as processed by rc(8)), the rest will be fetched from rc(8)/service(8). * the whole startup of a service is now outsourced to service(8). We don't check pids anymore, we only ask service for the service's status and pids and then monitor these, the same after restarting. * several internal changes. The code from Tom Rhodes was nice, but when I worked on it it was easier for me to think of my own code structure instead of thinking into his ones. Anyway, most of his structure and code is still in it. * everything works and compiles in NetBSD. I'd like to see the service bei= ng named something more generic (bscd? ;), but I'm not the one to decide up= on the code of others. There were some minor incompatibilities, though nothing you couldn't fix in five minutes, I'd prefer having a single codebase instead of two diverging ones. To use it, you: * power up fscd with `fscd` (nothing more) * enable a service with `fscadm enable $SERVICE` * stop monitoring it with `fscadm disable $SERVICE` * show status with `fscadm status` * close fscd with `fscadm shutdown` (or kill[all]) You can also supply the option `-s` to fscd and fscadm to specify the socket to be used instead of the standard one (/var/run/fscd.sock). You can as well supply the option `-c` to fscd to specify the configuration file to be used instead of the standard one (/etc/fscd.conf). You can download it here: https://vcs.in-berlin.de/schrank21_fscd/ (Files->Version->Tarball) NOTE: The manpages are *out of date*, they will be updated soon. Any comments, questions, further change requests, etc.? If you think the changes are sane, I'll also update the manpages. Regards, Julian PS: Please include me in the replies, I'm not subscribed to this list. --Sig_/hZ.X.bflZ/QBtp69f=6j5cs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk9h0ScACgkQc7h7cu1Hpp63bQCfbuwwyABQy5y7rkdbOawheJju MOkAnRhhcISvwxHXjlHVlYYTfcs+OdY4 =WYjU -----END PGP SIGNATURE----- --Sig_/hZ.X.bflZ/QBtp69f=6j5cs--