<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Services on Documentation</title><link>https://docs.ayshell.dev/tags/services/</link><description>Recent content in Services on Documentation</description><generator>Hugo -- 0.147.5</generator><language>en</language><lastBuildDate>Sun, 29 Jun 2025 20:02:46 +0530</lastBuildDate><atom:link href="https://docs.ayshell.dev/tags/services/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux: Service Management with systemd</title><link>https://docs.ayshell.dev/posts/linux/systemd/service-management/</link><pubDate>Sun, 29 Jun 2025 20:02:46 +0530</pubDate><guid>https://docs.ayshell.dev/posts/linux/systemd/service-management/</guid><description>&lt;h1 id="checking-service-status-in-detail">Checking Service Status In Detail&lt;/h1>
&lt;p>The &lt;code>systemctl status&lt;/code> command provides detailed information about a service, including it&amp;rsquo;s current state (&lt;em>active, inactive, failed&lt;/em>), recent log entries, and reasons for failure if the service is not running.&lt;/p>
&lt;p>&lt;strong>Example Command&lt;/strong>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo systemctl status apache2
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#or httpd service&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo systemctl status httpd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Output&lt;/strong>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>iamyaash@pi5:~ $ sudo systemctl status firewalld.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>● firewalld.service - firewalld - dynamic firewall daemon
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> Loaded: loaded &lt;span style="color:#f92672">(&lt;/span>/lib/systemd/system/firewalld.service; enabled; preset: enabled&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> Active: active &lt;span style="color:#f92672">(&lt;/span>running&lt;span style="color:#f92672">)&lt;/span> since Sun 2025-06-29 20:30:48 IST; 1s ago
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> Docs: man:firewalld&lt;span style="color:#f92672">(&lt;/span>1&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> Main PID: &lt;span style="color:#ae81ff">7956&lt;/span> &lt;span style="color:#f92672">(&lt;/span>firewalld&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> Tasks: &lt;span style="color:#ae81ff">2&lt;/span> &lt;span style="color:#f92672">(&lt;/span>limit: 9585&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> CPU: 279ms
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> CGroup: /system.slice/firewalld.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> └─7956 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Jun &lt;span style="color:#ae81ff">29&lt;/span> 20:30:48 pi5 systemd&lt;span style="color:#f92672">[&lt;/span>1&lt;span style="color:#f92672">]&lt;/span>: Starting firewalld.service - firewalld - dynamic firewall daemon...
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Jun &lt;span style="color:#ae81ff">29&lt;/span> 20:30:48 pi5 systemd&lt;span style="color:#f92672">[&lt;/span>1&lt;span style="color:#f92672">]&lt;/span>: Started firewalld.service - firewalld - dynamic firewall daemon.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The output includes:&lt;/p></description></item></channel></rss>