Free Hosting Online for WorkStations

< Previous | Contents | Next >

D.18. /etc/rc.d/init.d/reboot‌


#!/bin/sh

########################################################################

# Begin reboot

#

# Description : Reboot Scripts

#

#!/bin/sh

########################################################################

# Begin reboot

#

# Description : Reboot Scripts

#


# Authors

#

# Update

#

# Version

#

# Authors

#

# Update

#

# Version

#


########################################################################

########################################################################


### BEGIN INIT INFO

# Provides:

# Required-Start:

# Should-Start:

# Required-Stop:

# Should-Stop:

# Default-Start:

# Default-Stop:

### BEGIN INIT INFO

# Provides:

# Required-Start:

# Should-Start:

# Required-Stop:

# Should-Stop:

# Default-Start:

# Default-Stop:



# Short-Description: Reboots the system.

# Description: Reboots the System.

# X-LFS-Provided-By: LFS

### END INIT INFO

. /lib/lsb/init-functions case "${1}" in

stop)

log_info_msg "Restarting system..." reboot -d -f -i

;;


*)

echo "Usage: ${0} {stop}" exit 1

;;


esac


# End reboot

# Short-Description: Reboots the system.

# Description: Reboots the System.

# X-LFS-Provided-By: LFS

### END INIT INFO

. /lib/lsb/init-functions case "${1}" in

stop)

log_info_msg "Restarting system..." reboot -d -f -i

;;


*)

echo "Usage: ${0} {stop}" exit 1

;;


esac


# End reboot


: Gerard Beekmans - gerard@linuxfromscratch.org DJ Lucas - dj@linuxfromscratch.org

: Bruce Dubbs - bdubbs@linuxfromscratch.org

: Gerard Beekmans - gerard@linuxfromscratch.org DJ Lucas - dj@linuxfromscratch.org

: Bruce Dubbs - bdubbs@linuxfromscratch.org

: LFS 7.0

: LFS 7.0

halt

halt

0


Halts the system. Halts the System. LFS

0


Halts the system. Halts the System. LFS

Top OS Cloud Computing at OnWorks: