{"id":102676,"date":"2022-09-23T09:34:23","date_gmt":"2022-09-23T00:34:23","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=102676"},"modified":"2022-09-23T09:34:23","modified_gmt":"2022-09-23T00:34:23","slug":"wsl-support-systemd","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/wsl-support-systemd\/","title":{"rendered":"WSL\u304csystemd\u3092\u30b5\u30dd\u30fc\u30c8 - Microsoft\u3068Canonical\u304c\u5354\u529b"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/09\/s_20220914_115442.jpg\" alt=\"S 20220914 115442\" title=\"s_20220914_115442.jpg\" border=\"0\" width=\"1183\" height=\"713\" \/><\/p>\n<p>Microsoft\u306f9\u670821\u65e5(\u73fe\u5730\u6642\u9593)\u3001Windows Subsystem for Linux (WSL)\u304csystemd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305f\u4e8b\u3092\u767a\u8868\u3057\u307e\u3057\u305f(<a href=\"https:\/\/devblogs.microsoft.com\/commandline\/systemd-support-is-now-available-in-wsl\/\">Windows Command Line<\/a>)\u3002WSL\u306b\u5927\u304d\u306a\u5909\u66f4\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u305f\u3081\u3001\u5f53\u9762\u306f\u30b5\u30dd\u30fc\u30c8\u3092\u30aa\u30d7\u30c8\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u65e2\u5b58\u306eWSL\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>systemd\u306fUbuntu\u3084Debian\u306a\u3069\u3001\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3001\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3059\u3002systemd\u304c\u5b9f\u884c\u53ef\u80fd\u3068\u306a\u3063\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306esystemctl\u30b3\u30de\u30f3\u30c9\u304c\u5229\u7528\u53ef\u80fd\u3068\u306a\u3063\u305f\u307b\u304b\u3001Canonical\u306eSnap\u3084\u3001Kubernetes\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u52d5\u4f5c\u3055\u305b\u308b\u4e8b\u304c\u3067\u304d\u308bmicrok8s\u306a\u3069\u304c\u5229\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Microsoft\u306f\u3001WSL\u306e\u66f4\u65b0\u7248\u3092Windows Insider\u306b\u307e\u305a\u914d\u5e03\u3057\u3001\u6570\u9031\u9593\u5f8c\u306b\u5168\u30e6\u30fc\u30b6\u30fc\u306b\u63d0\u4f9b\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002Insider\u3067\u306a\u3044\u5834\u5408\u3067\u3082\u3001GitHub\u304b\u3089\u6700\u65b0\u306eWSL\u30ea\u30ea\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067systemd\u3092\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002systemd\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306f0.67.6\u4ee5\u964d\u3067\u3001\/etc\/wsl.conf\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n[boot]\r\nsystemd=true\r\n<\/pre>\n<p>\u7de8\u96c6\u5f8c\u3001PowerShell\u304b\u3089<code>wsl.exe --shutdown<\/code>\u3092\u5b9f\u884c\u3057\u3001\u30c7\u30a3\u30b9\u30c8\u30ed\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001<code>systemctl list-unit-files --type=service<\/code>\u3067systemd\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>WSL\u3067systemd\u3092\u4f7f\u3063\u3066\u4f55\u304c\u3067\u304d\u308b\u304b\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/ubuntu.com\/blog\/ubuntu-wsl-enable-systemd\">Canonical\u306e\u30d6\u30ed\u30b0<\/a>\u3067\u3082\u8a73\u3057\u304f\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><iframe width=\"680\" height=\"383\" src=\"https:\/\/www.youtube.com\/embed\/Ja3qikzd-as\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft\u306f9\u670821\u65e5(\u73fe\u5730\u6642\u9593)\u3001Windows Subsystem for Linux (WSL)\u304csystemd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305f\u4e8b\u3092\u767a\u8868\u3057\u307e\u3057\u305f(Windows Command Line)\u3002WSL\u306b\u5927\u304d\u306a\u5909\u66f4 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":102679,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3],"tags":[4106],"class_list":["post-102676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-wsl"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=102676"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102676\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/102679"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=102676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=102676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=102676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}