{"title":"systemctl poweroff","url":"https://randommemory.hatenablog.com/entry/2021/05/23/025710","provider_url":"https://hatena.blog","type":"rich","width":"100%","categories":["Linux"],"height":"190","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","published":"2021-05-23 02:57:10","author_name":"derwind","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F05%2F23%2F025710\" title=\"systemctl poweroff - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://randommemory.hatenablog.com/","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20210523/20210523025458.png","version":"1.0","author_url":"https://blog.hatena.ne.jp/derwind/","description":"sudo shotdown -r now \u306f\u53e4\u3044\u3089\u3057\u3044\u306e\u3067\u3001 sudo systemctl poweroff \u3067\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u884c\u3046\u3002\u3053\u308c\u306f\u7d50\u5c40\u3001https://github.com/systemd/systemd/blob/main/src/systemctl/systemctl-compat-halt.c#L144-L201 \u306e halt_main \u306b\u7e4b\u304c\u3063\u3066\u3044\u308b\u3002\u305d\u3057\u3066 https://github.com/systemd/systemd/blob/main/src/systemctl/systemctl-util.c#L898-L935 \u3067 halt_now \u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3002\u305d\u3057\u3066 r\u2026"}