{"id":4096,"date":"2021-02-11T12:32:09","date_gmt":"2021-02-11T03:32:09","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=4096"},"modified":"2023-06-22T05:20:43","modified_gmt":"2023-06-21T20:20:43","slug":"systemd%e3%81%a7%e7%8b%ac%e8%87%aa%e3%81%aetarget%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/4096","title":{"rendered":"Systemd\u3067\u72ec\u81ea\u306etarget\u3092\u4f5c\u6210\u3059\u308b\uff01"},"content":{"rendered":"<p>Systemd\u3067\u72ec\u81ea\u306etarget\u3092\u4f5c\u6210\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306eService\u306e\u8d77\u52d5\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<!--more--><\/p>\n<h2>\u72ec\u81ea\u306etarget\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>\u73fe\u7528\u7cfb\u3068\u5f85\u6a5f\u7cfb\u306e\u69cb\u6210\u3092\u3082\u3064\u30b7\u30b9\u30c6\u30e0\u3092\u60f3\u5b9a\u3057\u3066\u3001active.target\u3068standby.target\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u3001multi-user.target\u3092\u30d9\u30fc\u30b9\u306b\u8d77\u52d5\u3059\u308bUnit\u3092\u5b9a\u7fa9\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u73fe\u7528\u7cfb\u306etarget\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h3>\n<p>\u73fe\u7528\u7cfb\u306etarget\u3068\u3057\u3066\u3001active.target\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo vi \/etc\/systemd\/system\/active.target\r\n&#x5B;Unit]\r\nDescription=Active System target\r\nRequires=multi-user.target\r\nConflicts=rescue.service rescue.target\r\nAfter=multi-user.target rescue.service rescue.target\r\nAllowIsolate=yes\r\n<\/pre>\n<h3>\u5f85\u6a5f\u7cfb\u306etarget\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h3>\n<p>\u73fe\u7528\u7cfb\u306etarget\u3068\u3057\u3066\u3001standby.target\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo vi \/etc\/systemd\/system\/standby.target\r\n&#x5B;Unit]\r\nDescription=Standby System target\r\nRequires=multi-user.target\r\nConflicts=rescue.service rescue.target\r\nAfter=multi-user.target rescue.service rescue.target\r\nAllowIsolate=yes\r\n<\/pre>\n<h2>Unit\u3092\u4f5c\u6210\u3057\u305ftarget\u306b\u767b\u9332\u3059\u308b\uff01<\/h2>\n<p>Unit\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u3001\u4f5c\u6210\u3057\u305ftarget\u306b\u767b\u9332\u3057\u307e\u3059\u3002Unit\u30d5\u30a1\u30a4\u30eb\u306eInstall\u30bb\u30af\u30b7\u30e7\u30f3\u306eWantedBy\u306b\u767b\u9332\u3059\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d6\u30e9\u30f3\u30af\u3067\u533a\u5207\u3063\u3066\u8907\u6570\u306etarget\u306b\u767b\u9332\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;Install]\r\nWantedBy=active.target standby.target\r\n<\/pre>\n<p>Unit\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u305f\u3089\u3001Service\u3092enable\u3057\u307e\u3059\u3002\u65e2\u306b\u306bmulti-user.target\u7b49\u306b\u767b\u9332\u6e08\u307f\u3067\u3042\u308c\u3070\u3001\u4e00\u65e6\u3001Service\u3092disable\u306b\u3057\u3066\u304b\u3089enable\u3057\u307e\u3059\u3002\u767b\u9332\u3092\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5207\u308a\u66ff\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl isolate active.target\r\n$ sudo systemctl isolate standby.target\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u72ec\u81ea\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u4f5c\u6210\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u76ee\u7684\u306b\u5408\u308f\u305b\u3066target\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001Unit\u306e\u8d77\u52d5\u72b6\u614b\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\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>Systemd\u3067\u72ec\u81ea\u306etarget\u3092\u4f5c\u6210\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306eService\u306e\u8d77\u52d5\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\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":[283,284],"class_list":["post-4096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-systemd","tag-systemd","tag-target"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4096","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=4096"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4096\/revisions"}],"predecessor-version":[{"id":12492,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4096\/revisions\/12492"}],"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=4096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=4096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=4096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}