{"id":640,"date":"2014-12-22T14:29:17","date_gmt":"2014-12-22T14:29:17","guid":{"rendered":"http:\/\/vickistan.com\/?p=640"},"modified":"2014-12-22T14:37:16","modified_gmt":"2014-12-22T14:37:16","slug":"systemd","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=640","title":{"rendered":"Systemd"},"content":{"rendered":"<p>This is how to stop a running service temporarily:<\/p>\n<p># systemctl stop servicename.service<\/p>\n<p>This stops it from starting at boot, but does not stop a running service:<\/p>\n<p># systemctl disable servicename.service<\/p>\n<p>That also prevents it from being started by anything else, such as plugging in some hardware, or by socket or bus activation<\/p>\n<p>There is one way to stop a service for good without uninstalling it, and that is by linking it to \/dev\/null:<\/p>\n<p>\u2028\u2028# ln -s \/dev\/null \/etc\/systemd\/system\/servicename.service\u2028# systemctl daemon-reload<\/p>\n<p>When you want it back: <\/p>\n<p>delete the symlink to \/dev\/null and run systemctl enable servicename.service<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is how to stop a running service temporarily: # systemctl stop servicename.service This stops it from starting at boot, but does not stop a running service: # systemctl disable servicename.service That also prevents it from being started by anything &hellip; <a href=\"https:\/\/vickistan.com\/?p=640\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-640","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=640"}],"version-history":[{"count":4,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions\/644"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}