#service
5 one-liners with this tag.
All one-liners tagged service
List all running systemd services
$systemctl list-units --type=service --state=running --no-pager
Query uptime, memory and restart count of a service
$systemctl show php8.2-fpm -p ActiveState,ActiveEnterTimestamp,MainPID,MemoryCurrent,NRestarts
Restart a service and check the result
#systemctl restart php8.2-fpm && systemctl is-active php8.2-fpm
Show journal logs for a single service
#journalctl -u nginx -n 200 --no-pager
Show the full status of a systemd service
$systemctl status nginx --no-pager -l