{"id":4048,"date":"2021-02-08T07:07:50","date_gmt":"2021-02-07T22:07:50","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=4048"},"modified":"2023-06-22T05:19:22","modified_gmt":"2023-06-21T20:19:22","slug":"systemd%e3%81%a7%e9%9b%bb%e6%ba%90%e5%88%b6%e5%be%a1%e3%82%92%e8%a1%8c%e3%81%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/4048","title":{"rendered":"Systemd\u3067Linux\u306e\u8d77\u52d5\uff0f\u505c\u6b62\uff0f\u518d\u8d77\u52d5\u3092\u884c\u3046\uff01\uff08systemctl\uff09"},"content":{"rendered":"<p>\u96fb\u6e90\u5236\u5fa1\u306e\u30b3\u30de\u30f3\u30c9\u3068Systemd\u3068\u306e\u95a2\u4fc2\u3092\u6574\u7406\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u3057\u305f\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu Desktop 20.04 LTS (20.04.1)<\/li>\n<\/ul>\n<h2>\u96fb\u6e90\u5236\u5fa1\u30b3\u30de\u30f3\u30c9\u306e\u30ea\u30f3\u30af\u5148\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Ubuntu\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u96fb\u6e90\u5236\u5fa1\u306e\u30b3\u30de\u30f3\u30c9\u304c\u3001systemctl\u30b3\u30de\u30f3\u30c9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ ls -l | grep systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 halt -&gt; \/bin\/systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 poweroff -&gt; \/bin\/systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 reboot -&gt; \/bin\/systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 runlevel -&gt; \/bin\/systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 shutdown -&gt; \/bin\/systemctl\r\nlrwxrwxrwx 1 root root        14 Jan 10 16:42 telinit -&gt; \/bin\/systemctl\r\n<\/pre>\n<p>\u96fb\u6e90\u5236\u5fa1\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001systemctl\u30b3\u30de\u30f3\u30c9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001systemctl\u30b3\u30de\u30f3\u30c9\u3067\u96fb\u6e90\u5236\u5fa1\u3092\u884c\u3046\u3053\u3068\u3082\u53ef\u80fd\u3067\u3001\u5f93\u6765\u306eshutdown\u30b3\u30de\u30f3\u30c9\u7b49\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u505c\u6b62\u3057\u3066\u96fb\u6e90\u3092OFF\u306b\u3059\u308b\uff01<\/h2>\n<p>poweroff\u30b3\u30de\u30f3\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u96fb\u6e90\u3092OFF\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo poweroff\r\n<\/pre>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u96fb\u6e90\u3092OFF\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl poweroff\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>reboot\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo reboot\r\n<\/pre>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl reboot\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u505c\u6b62\u3059\u308b\uff01<\/h2>\n<p>halt\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\u96fb\u6e90OFF\u307e\u3067\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo halt\r\n<\/pre>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\u96fb\u6e90OFF\u307e\u3067\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl halt\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u30b5\u30b9\u30da\u30f3\u30c9\u3059\u308b\uff01<\/h2>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u30b5\u30b9\u30da\u30f3\u30c9\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u7ba1\u3057\u3066\u4e00\u6642\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl suspend\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d0\u30cd\u30fc\u30c8\u3059\u308b\uff01<\/h2>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d0\u30cd\u30fc\u30c8\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u7ba1\u3057\u3066\u4e00\u6642\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl hibernate\r\n<\/pre>\n<h2>\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30b9\u30ea\u30fc\u30d7\u3059\u308b\uff01<\/h2>\n<p>systemctl\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30b9\u30ea\u30fc\u30d7\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u30e1\u30e2\u30ea\u3068\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u7ba1\u3057\u3066\u4e00\u6642\u505c\u6b62\u3057\u307e\u3059\u3002\u5fa9\u5e30\u306f\u30e1\u30e2\u30ea\u304b\u3089\u884c\u3044\u307e\u3059\u304c\u3001\u30d0\u30c3\u30c6\u30ea\u30fc\u304c\u5207\u308c\u3066\u30e1\u30e2\u30ea\u306e\u72b6\u614b\u304c\u5931\u308f\u308c\u305f\u5834\u5408\u306f\u3001\u30c7\u30a3\u30b9\u30af\u304b\u3089\u5fa9\u5e30\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl hybrid-sleep\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u96fb\u6e90\u5236\u5fa1\u95a2\u9023\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u3059\u3079\u3066systemctl\u30b3\u30de\u30f3\u30c9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u304a\u308a\u3001systemctl\u30b3\u30de\u30f3\u30c9\u3067\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8621\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092Systemd\u3067\u5236\u5fa1\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092Systemd\u3067\u5236\u5fa1\u3059\u308b\uff01<\/div><div class=\"substr\">Systemd\u3067Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/48CJTzL\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41cVV6Rkp2L._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96fb\u6e90\u5236\u5fa1\u306e\u30b3\u30de\u30f3\u30c9\u3068Systemd\u3068\u306e\u95a2\u4fc2\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125],"tags":[282,285,283,558,557],"class_list":["post-4048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-systemd","tag-linux","tag-systemctl","tag-systemd","tag-558","tag-557"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=4048"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4048\/revisions"}],"predecessor-version":[{"id":12490,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4048\/revisions\/12490"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=4048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=4048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=4048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}