From owner-freebsd-questions Fri Dec 29 20:09:00 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA25652 for questions-outgoing; Fri, 29 Dec 1995 20:09:00 -0800 (PST) Received: from fyeung5.netific.com (netific.vip.best.com [205.149.182.145]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA25647 for ; Fri, 29 Dec 1995 20:08:56 -0800 (PST) Received: (from fyeung@localhost) by fyeung5.netific.com (8.6.11/8.6.9) id UAA01413 for questions@freebsd.org; Fri, 29 Dec 1995 20:07:46 GMT From: francis yeung Message-Id: <199512292007.UAA01413@fyeung5.netific.com> Subject: can't shutdown To: questions@freebsd.org Date: Fri, 29 Dec 1995 20:07:45 +0000 () X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@freebsd.org Precedence: bulk Greetings, Due to some applications problems, I have to automatically reboot my BSD 2.0.5 system every 4 hours. I have setup a /bin/sh script to do "shutdown -r +1". The following messages were displayed after 1 minutes: Dec 27 20:31:32 sysx shutdown: reboot by root: Dec 27 20:31:35 sysx syslogd: exiting on signal 15 and then the system just hung there. It did not go into disk resync and reboot at all. I have also tried various ways shown below: - reboot - su << EOF /sbin/shutdown -r +0 EOF - etc And, all ends up with the same result - hung without going into disk resync and reboot. However, if I enter on the console, the system will go into disk ...resync.... and then reboot ! Why ? Do the reboot and shutdown command need some kind of "tty" operation? I want to be able to reboot my system remotely. What do I have to do ? I have no problem doing halt, reboot and shutdown on the console, or in a rlogin or telnet session. but I can't use a script or system() call to do the same. Why ? Thank you for your help. Francis