{"id":7774,"date":"2021-06-28T03:16:49","date_gmt":"2021-06-28T03:16:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=7774"},"modified":"2021-06-28T03:16:49","modified_gmt":"2021-06-28T03:16:49","slug":"how-to-start-stop-or-restart-services-in-linux-mint-20","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-to-start-stop-or-restart-services-in-linux-mint-20\/","title":{"rendered":"How to Start, Stop or Restart Services in Linux Mint 20"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Services are the applications that run in the operating system\u2019s background waiting to be used. Linux lets you see and manage these services and overall offers more control over them.<\/p>\n<p>In this article, you will learn different ways to start, stop and restart any service in Linux Mint 20.<\/p>\n<h2>Prerequisites<\/h2>\n<p>You will need a user account with root\/sudo privileges, access to the terminal, and the systemctl tool which comes with Linux.<\/p>\n<h2>Managing Services Using Systemd<\/h2>\n<p>Systemd is itself a daemon which refers to libraries, packages, and utilities around daemons. It is the most advanced system management daemon that is fast and takes much fewer system resources than its counterparts.<\/p>\n<h3>View All Services<\/h3>\n<p>You can see all the available services in your system with the following command.<\/p>\n<pre>sudo systemctl list-unit-files --type=service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1160\" height=\"726\" class=\"wp-image-7775\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-862.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-862.png 1160w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-862-300x188.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-862-1024x641.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-862-768x481.png 768w\" sizes=\"auto, (max-width: 1160px) 100vw, 1160px\" \/><\/p>\n<h3>View Running Services<\/h3>\n<p>To see all the services that are currently running on your system, run the following command.<\/p>\n<pre>sudo systemctl | grep running<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1702\" height=\"416\" class=\"wp-image-7776\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863.png 1702w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863-300x73.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863-1024x250.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863-768x188.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-863-1536x375.png 1536w\" sizes=\"auto, (max-width: 1702px) 100vw, 1702px\" \/><\/p>\n<h3>Start a Service<\/h3>\n<p>Use the following command to start your service.<\/p>\n<pre>sudo systemctl start &lt;service name&gt;<\/pre>\n<p><strong>Note:<\/strong> Remember &lt;service name&gt; is a placeholder and you need to replace it with the name of your service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1121\" height=\"146\" class=\"wp-image-7777\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-864.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-864.png 1121w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-864-300x39.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-864-1024x133.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-864-768x100.png 768w\" sizes=\"auto, (max-width: 1121px) 100vw, 1121px\" \/><\/p>\n<h3>Stop a Service<\/h3>\n<p>Use the following command to stop your service.<\/p>\n<pre>sudo systemctl stop &lt;service name&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1048\" height=\"128\" class=\"wp-image-7778\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-865.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-865.png 1048w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-865-300x37.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-865-1024x125.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-865-768x94.png 768w\" sizes=\"auto, (max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<h3>Restart a Service<\/h3>\n<p>Use the following command to restart your service.<\/p>\n<pre>sudo systemctl restart &lt;service name&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1112\" height=\"110\" class=\"wp-image-7779\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-866.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-866.png 1112w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-866-300x30.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-866-1024x101.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-866-768x76.png 768w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/p>\n<h3>Check Status of the Service<\/h3>\n<p>Use the following command to check the status of your service.<\/p>\n<pre>sudo systemctl status &lt;service name&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1483\" height=\"327\" class=\"wp-image-7780\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-867.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-867.png 1483w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-867-300x66.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-867-1024x226.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-867-768x169.png 768w\" sizes=\"auto, (max-width: 1483px) 100vw, 1483px\" \/><\/p>\n<h2>Managing Services Using service Command<\/h2>\n<p>Service is an advanced command that is a part of init. But its execution is done now by redirecting commands to systemctl.<\/p>\n<h3>View All Services in Your System<\/h3>\n<p>To check all the services you have on your system, simply run the command below.<\/p>\n<pre>sudo service --status-all<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1395\" height=\"692\" class=\"wp-image-7781\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-868.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-868.png 1395w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-868-300x149.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-868-1024x508.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-868-768x381.png 768w\" sizes=\"auto, (max-width: 1395px) 100vw, 1395px\" \/><\/p>\n<p>Note that all the enabled services are preceded by the <strong>[+] <\/strong>symbol while all the disabled services have the <strong>[-] <\/strong>symbol next to them.<\/p>\n<h3>Start a Service<\/h3>\n<p>You can start a service using the following command.<\/p>\n<pre>sudo service &lt;service name&gt; start<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"134\" class=\"wp-image-7782\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-869.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-869.png 1017w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-869-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-869-768x101.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<h3>Stop a Service<\/h3>\n<p>To stop a service, use the following command.<\/p>\n<pre>sudo service &lt;service name&gt; stop<\/pre>\n<h3><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"199\" class=\"wp-image-7783\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-870.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-870.png 945w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-870-300x63.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-870-768x162.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/h3>\n<h3>Restart a Service<\/h3>\n<p>Restart any service with the following command.<\/p>\n<pre>sudo service &lt;service name&gt; restart<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"145\" class=\"wp-image-7784\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-871.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-871.png 1000w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-871-300x44.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-871-768x111.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<h3>Check Status of the Service<\/h3>\n<p>You can check the status of any service with the following command.<\/p>\n<pre>sudo service &lt;service name&gt; status<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1230\" height=\"310\" class=\"wp-image-7785\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-872.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-872.png 1230w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-872-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-872-1024x258.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-872-768x194.png 768w\" sizes=\"auto, (max-width: 1230px) 100vw, 1230px\" \/><\/p>\n<h2>Managing Services Using init Scripts<\/h2>\n<p>The init daemon is a daemon management system referred to as System V init. It takes a lot of resources so it was replaced by systemd.<\/p>\n<h3>Start a Service<\/h3>\n<p>Start service with the following command.<\/p>\n<pre>sudo \/etc\/init.d\/&lt;service name&gt;start<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1053\" height=\"176\" class=\"wp-image-7786\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-873.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-873.png 1053w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-873-300x50.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-873-1024x171.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-873-768x128.png 768w\" sizes=\"auto, (max-width: 1053px) 100vw, 1053px\" \/><\/p>\n<h3>Stop a Service<\/h3>\n<p>To stop a service, run the following command.<\/p>\n<pre>sudo \/etc\/init.d\/&lt;service name&gt; stop<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1067\" height=\"169\" class=\"wp-image-7787\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-874.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-874.png 1067w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-874-300x48.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-874-1024x162.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-874-768x122.png 768w\" sizes=\"auto, (max-width: 1067px) 100vw, 1067px\" \/><\/p>\n<h3>Restart a Service<\/h3>\n<p>To restart a service, run the following command.<\/p>\n<pre>sudo \/etc\/init.d\/&lt;service name&gt; restart<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1073\" height=\"140\" class=\"wp-image-7788\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-875.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-875.png 1073w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-875-300x39.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-875-1024x134.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-875-768x100.png 768w\" sizes=\"auto, (max-width: 1073px) 100vw, 1073px\" \/><\/p>\n<h3>Check Status of the Service<\/h3>\n<p>Check the status of a service using the following command.<\/p>\n<pre>sudo \/etc\/init.d\/&lt;service name&gt; status<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1545\" height=\"388\" class=\"wp-image-7789\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876.png 1545w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876-1024x257.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876-768x193.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-876-1536x386.png 1536w\" sizes=\"auto, (max-width: 1545px) 100vw, 1545px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>This article covers all the basics of service management in Linux Mint 20.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Services are the applications that run in the operating system\u2019s background waiting to be used. Linux lets you see and manage these services and overall offers more&hellip;<\/p>","protected":false},"author":1,"featured_media":7839,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129,48],"class_list":["post-7774","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20","tag-services"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=7774"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7774\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/7839"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=7774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=7774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=7774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}