GoAdmio Command Line: suspend with /go/suspend

/go/suspend marks a hosting account as suspended. It: To lift a suspension, use unsuspend. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/suspend example.com

Arguments

Argument Required Default Notes
<domain> Yes — The account’s primary domain, as stored in GoAdmio. It is not checked.
[reason] No — A text such as `

The command has no --option flags.

Examples

# Suspend an account
/go/suspend example.com

# Suspend with a reason that is written to the log
/go/suspend example.com "| Abuse report 4711"

# Lift the suspension
/go/unsuspend example.com

# Check the flag
sqlite3 /var/lib/sqlite/site.db "SELECT Domain, Suspend FROM Site WHERE Domain='example.com'"

Output

Outcome What you get
Any run Account <domain> has been suspended and the output of the web server commands.

The message is printed even if the domain doesn’t exist, because nothing is checked. The exit code is the one of the last reload.

Logging

Every run is appended to /var/log/go/suspend.log, with all arguments, so the reason appears there.

See the full reference at /go/suspend 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 *