status with the /go/status Command

/go/status takes a snapshot of the services that systemd currently has loaded on the server, such as the web server, PHP-FPM, MariaDB, and mail services. It: It is a snapshot of the moment it runs. It does not watch services or restart anything. For automatic repairs, see heal. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/status

Options

This command has no options. Arguments are only written to the log file.

Examples

# Collect and show the status of the loaded services
/go/status

# Show only the failed services
/go/status | grep failed

# Look at one service in detail with systemd itself
systemctl status mariadb

Output

Each service is printed as one line in this format:

<service> | <status> | <description>

An illustrative example:

sshd | loaded active running | OpenSSH server daemon
mariadb | loaded active running | MariaDB database server
cron | loaded active running | Command Scheduler
firewalld | loaded active running | firewalld - dynamic firewall daemon
systemd-user-sessions | loaded active exited | Permit User Sessions

The status column holds the three systemd states: whether the unit file was loaded, the high-level state (active or failed), and the low-level state (running, exited, or failed).

Status Meaning
loaded active running The service is running.
loaded active exited The service ran and finished, which is normal for one-time start-up tasks.
loaded failed failed The service tried to start and failed.

The command prints nothing else. The same list is also saved in GoAdmio’s status database, and every run is recorded in /var/log/go/status.log.

See the full reference at /go/status and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *