Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.17 KB

viewing-the-status-of-a-specific-service.md

File metadata and controls

28 lines (22 loc) · 1.17 KB

Viewing the status of a specific service

🕰️ logged on 2024.07.30
🔖 tagged: devops, shell, sudo, services, logging, unix

I had to verify that a service on a remote server was still working as intended afer applying a configuration change. Luckily checking this is a breeze, because when you know the name of a service you can see how it is doing with the following command:

systemctl status <service_name_here>

As an example: running systemctl status lighttpd.service will yield:

● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-08-04 04:29:19 UTC; 3 weeks 2 days ago
Main PID: 105 (lighttpd)
Tasks: 1 (limit: 115783)
Memory: 56.5M
CGroup: /system.slice/lighttpd.service
        └─105 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Aug 04 04:29:19 utls-bash-wiki systemd[1]: Starting Lighttpd Daemon...
Aug 04 04:29:19 utls-bash-wiki systemd[1]: Started Lighttpd Daemon.

Sources