From owner-freebsd-bugs Tue Mar 9 17:50:32 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id AF53E15045 for ; Tue, 9 Mar 1999 17:50:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id RAA56892; Tue, 9 Mar 1999 17:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Tue, 9 Mar 1999 17:50:02 -0800 (PST) Message-Id: <199903100150.RAA56892@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Cy Schubert - ITSD Open Systems Group Subject: Re: bin/10035: 3.0-STABLE, rc.shutdown is still ignored. Reply-To: Cy Schubert - ITSD Open Systems Group Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/10035; it has been noted by GNATS. From: Cy Schubert - ITSD Open Systems Group To: freebsd-gnats-submit@freebsd.org, philip@eilio.com Cc: Subject: Re: bin/10035: 3.0-STABLE, rc.shutdown is still ignored. Date: Tue, 09 Mar 1999 17:48:39 -0800 I've been asking myself this question myself, since upgrading from 2.2.8 to 3.1.0 and receiving many more . After looking at the source, shutdown -r, which performs a reboot(), will not run rc.shutdown. To run rc.shutdown, you need to do a shutdown now. I've been thinking that to perform a reboot you will need to create a shell script to [for example] touch a file in /var/run, then issue a shutdown now. rc.shutdown would reboot, halt, or go sigle-user based upon which file would exist (or the contents of the file) in /var/run. In a sense this is vaguely similar in function what the SYSV init does when you send it an "init 6" or "init 0". Reboot(2) on the other hand is a system call that syncs the file systems and reboots or shuts down. I suppose that reboot could signal init to run rc.shutdown, however this would be more consistent with SYSV rather than BSD. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Open Systems Group Internet: Cy.Schubert@uumail.gov.bc.ca ITSD Cy.Schubert@gems8.gov.bc.ca Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message