From owner-freebsd-questions@FreeBSD.ORG Fri Aug 4 17:38:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F93816A4E0 for ; Fri, 4 Aug 2006 17:38:31 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8272643D55 for ; Fri, 4 Aug 2006 17:38:27 +0000 (GMT) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id 3695D13CEB0 for ; Fri, 4 Aug 2006 19:38:26 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Fri, 4 Aug 2006 19:38:24 +0200 (CEST) Received: (qmail 60115 invoked by uid 88); 4 Aug 2006 19:38:24 +0200 Received: from 37.84-48-193.nextgentel.com (HELO [10.0.0.8]) (84.48.193.37) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; fre, 04 aug 2006 19:38:23 +0200 Message-ID: <44D38604.6020500@lvor.halvorsen.cc> Date: Fri, 04 Aug 2006 19:38:12 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 1.5.0.2 (X11/20060522) MIME-Version: 1.0 To: DW References: <44D37BAE.7000800@dwinner.net> In-Reply-To: <44D37BAE.7000800@dwinner.net> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0168FF9F9B3BF3EFACA3730D" X-Virus-Checked: Checked X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: freebsd-questions@freebsd.org Subject: Re: .bash_logout and shutdown -- need ideas X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 17:38:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0168FF9F9B3BF3EFACA3730D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable DW wrote: > Just started using a .bash_logout script to handle doing my unison : > The problem with that though, is that the shutdown process runs as root= , > and just drops the system, and I'm never actually getting logged out as= > much as booted out. So my .bash_logout doesn't run, and thus no unison > unless I remember to run it manually first. >=20 > Any ideas on how to work around this sitch? At shutdown FreeBSD runs /etc/rc.shutdown. It seems that this script, by means of /etc/rc.subr, will iterate all the files in (among others) /usr/local/etc/rc.d/ and call them with the "faststop" argument. Maybe you could just add a script in there? (Actually, only files with a "# PROVIDES" line are considered, it seems, so you should think about that). Svein Halvor --------------enig0168FF9F9B3BF3EFACA3730D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iD8DBQFE04YHhQg3vZGYu0ARAqjJAJ0Rr8FowrPhBoayyKy4Jzr25zHm5ACeK40Q eB819rrYdFEYC14elAMZkRs= =ysQu -----END PGP SIGNATURE----- --------------enig0168FF9F9B3BF3EFACA3730D--