From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from smtp-2.enteract.com (smtp-2.enteract.com [207.229.143.4]) by chiba.3jane.net (Postfix) with ESMTP id 485C915A3B for ; Wed, 12 Dec 2001 11:17:51 -0600 (CST) Received: from shell-2.enteract.com (shell-2.enteract.com [207.229.143.41]) by smtp-2.enteract.com (Postfix) with ESMTP id 0E242622F; Wed, 12 Dec 2001 11:18:04 -0600 (CST) Received: (from tchan@localhost) by shell-2.enteract.com (8.11.6/8.11.2) id fBCHI3956313; Wed, 12 Dec 2001 11:18:03 -0600 (CST) (envelope-from tchan) Date: Wed, 12 Dec 2001 11:18:03 -0600 From: Terry Chan To: gentoo-dev@gentoo.org Message-ID: <20011212111803.A52557@enteract.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [gentoo-dev] uptime problems? Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 435b268b-cf07-4f58-b6cd-0b2e6116d449 X-Archives-Hash: ed6b81e5065be45d3d05f147fa37b4f8 Is anyone else have a problem with running the uptime command? On a clean install gentoo r11 box (currently upgraded to latest portage and baselayout) running uptime gives: uptime: couldn't get boot time: No such file or directory drobbins suggested using strace, which gives a lot of stuff but the important part is: open("/var/run/utmp", O_RDWR) = 3 (I think this means it successfully opened the file) then a lot of seeks and reads that don't seem to find whatever uptime is looking for inside the above file. The end of the strace gives the above message "couldn't get boot time: ..." Does anyone know how to fix this problem of not being able to get info from "uptime" ? Thanks, Terry Chan