Skip to content

s-r-e-e-r-a-j/RebootX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RebootX

RebootX is a powerful and safe reboot tool for Linux systems. It gives you more control and safety than the normal reboot command.

Features

  • Safe Reboot – Unmounts all file systems before restarting.

  • Message Broadcast – Sends a message to all logged-in users on real TTYs or SSH sessions. Messages do not appear on normal GUI terminals.

  • Delay Option – Adds a custom delay before rebooting.

  • Force Reboot – Forces an immediate reboot when needed.

  • Logging – Records only safe and force reboot operations in /var/log/rebootx.log.

  • Works on Kali Linux, Ubuntu, Debian, RHEL, Fedora, Arch, etc.

Note

Before building RebootX, make sure the required build tools are installed on your system.

Debian/Ubuntu/Kali/Parrot:

sudo apt install build-essential -y

Arch/BlackArch/Manjaro:

sudo pacman -Syu base-devel --noconfirm

Fedora/RHEL/CentOS:

sudo dnf groupinstall "Development Tools" -y

These packages ensure that gcc and make are available for compiling and building RebootX

Installation

  1. Clone the repository
git clone https://github.com/s-r-e-e-r-a-j/RebootX.git
  1. Go to the RebootX directory
cd RebootX
  1. Build the program
make
  1. Install on your system
make install

Usage

Run as root (or with sudo):

# Normal reboot
sudo rebootx

# with options
sudo rebootx [options]

Command-line options

Option Description
--safe Performs a safe reboot by syncing and unmounting all file systems before rebooting.
--force Forces an immediate reboot without asking for confirmation. Can be combined with --safe or --delay.
--delay <seconds> Waits for the specified number of seconds with a visible countdown before rebooting.
--msg "text" Broadcasts a message to all logged-in users on real TTYs or SSH sessions (not shown on GUI terminals).
--help Displays usage information.

Examples

Normal reboot

sudo rebootx

Safe reboot

sudo rebootx --safe

Force reboot

sudo rebootx --force

Force safe reboot

sudo rebootx --force --safe

Send message before reboot

sudo rebootx --msg "System will reboot soon"

Safe reboot with message and 10-second delay

sudo rebootx --safe --msg "Rebooting in 10 seconds" --delay 10

Force safe reboot with message and delay

sudo rebootx --force --safe --msg "Rebooting in 5 seconds" --delay 5

Show Usage

sudo rebootx --help

Uninstallation

sudo rm -f /usr/local/bin/rebootx

License

This project is licensed under the MIT License

About

RebootX is a powerful and safe reboot tool for Linux systems. It gives you more control and safety than the normal reboot command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors