Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 1999 11:19:14 +0500 (UZT)
From:      Rustam Abdullaev <rustam@eanetways.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/12093: /sbin/reboot does not run /etc/rc.shutdown
Message-ID:  <199906090619.LAA60242@ns.eanetways.com>

next in thread | raw e-mail | index | archive | help

>Number:         12093
>Category:       bin
>Synopsis:       /sbin/reboot does not run /etc/rc.shutdown during reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun  8 23:20:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Rustam Abdullaev
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
EurAsia NetWays ISP
>Environment:
>Description:
when I reboot or halt my FreeBSD box using Ctrl-Alt-Del or kill 1, the
init process successfully runs /etc/rc.shutdown, but when I try
/sbin/reboot or /sbin/halt, the init process gets stopped and has no
chance to run /etc/rc.shutdown

>How-To-Repeat:
/sbin/reboot

>Fix:
Copy the runshutdown() function from /sbin/init into /sbin/reboot and use it
before stopping init.


>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906090619.LAA60242>