{"id":7962,"date":"2020-06-13T15:23:38","date_gmt":"2020-06-13T07:23:38","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7962"},"modified":"2020-06-13T15:23:40","modified_gmt":"2020-06-13T07:23:40","slug":"initctl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/initctl","title":{"rendered":"initctl\u547d\u4ee4 – \u63a7\u5236\u548c\u7ba1\u7406init\u5b88\u62a4\u8fdb\u7a0b"},"content":{"rendered":"\n
initctl\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u63a7\u5236\u548c\u7ba1\u7406init\u5b88\u62a4\u8fdb\u7a0b\u3002<\/p>\n\n\n\n
initctl\u547d\u4ee4\u5305\u542b\u5728upstart\u63d0\u4f9b\u7684\u547d\u4ee4\u4e2d\u3002upstart\u662f\u4f7f\u7528\u7684\u4e8b\u4ef6\u9a71\u52a8\u7684\u4e00\u4e2a\u4f18\u5316\uff0c\u8be5\u4f18\u5316\u4f53\u73b0\u4e3a\u542f\u52a8\u670d\u52a1A\u7684\u65f6\u5019\uff0c\u4e0d\u7528\u7b49\u5f85A\u7684\u7ed3\u675f\u5c31\u53ef\u4ee5\u542f\u52a8\u670d\u52a1B\u4e86\u3002<\/p>\n\n\n\n
initctl\u547d\u4ee4\u5141\u8bb8\u7cfb\u7edf\u7ba1\u7406\u5458\u4e0eupstart init\u540e\u53f0\u5b88\u62a4\u8fdb\u7a0b\u4ea4\u4e92\u3002\u5f53\u4f5c\u4e3ainitctl\u8fd0\u884c\u65f6\uff0c\u7b2c\u4e00\u4e2a\u975e\u9009\u9879\u53c2\u6570\u662f\u547d\u4ee4\u672c\u8eab\uff0c\u5176\u4ed6\u53c2\u6570\u53ef\u4ee5\u5728\u547d\u4ee4\u4e4b\u524d\u6216\u4e4b\u540e\u6307\u5b9a\u3002\u9ed8\u8ba4\u4e3astart\u3001stop\u3001restart\u3001reload\u548cstatus\u547d\u4ee4\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>initctl [\u53c2\u6570] [ARG]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u547d\u4ee4\u63cf\u8ff0\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5217\u51fa\u6240\u6709\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n \u542f\u52a8\u4f5c\u4e1acontrol-alt-delete\uff1a<\/p>\n\n\n\n \u67e5\u770b\u4f5c\u4e1a\/dev\/tty6\u7684\u72b6\u6001\uff1a<\/p>\n\n\n\n \u91cd\u65b0\u52a0\u8f7d\/dev\/tty6\u914d\u7f6e\uff1a<\/p>\n\n\n\n initctl\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u63a7\u5236\u548c\u7ba1\u7406init\u5b88\u62a4\u8fdb\u7a0b\u3002 initctl\u547d\u4ee4\u5305\u542b\u5728upstart\u63d0\u4f9b\u7684\u547d\u4ee4\u4e2d\u3002u […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7962"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7962"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7962\/revisions"}],"predecessor-version":[{"id":7967,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7962\/revisions\/7967"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-- -system<\/td> \u7528init\u5b88\u62a4\u8fdb\u7a0b\u901a\u4fe1\u5e38\u4f1a\u8fdb\u884c\u4e00\u4e2a\u79c1\u6709socket\u8fde\u63a5<\/td><\/tr> -- -no-wait<\/td> \u9002\u7528\u4e8estart\u3001stop\u3001restart\u548cemit\u547d\u4ee4<\/td><\/tr> -- -quiet<\/td> \u53ea\u964d\u4f4e\u6240\u6709\u547d\u4ee4\u9519\u8bef\u7684\u8f93\u51fa<\/td><\/tr> -- -dest<\/td> \u5f53\u4f7f\u7528--system\u9009\u9879\u65f6\u6307\u5b9ainit\u5b88\u62a4\u8fdb\u7a0b\u7684\u540d\u79f0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n start<\/td> \u542f\u52a8\u4f5c\u4e1a<\/td><\/tr> list<\/td> \u5217\u51fa\u4f5c\u4e1a<\/td><\/tr> stop<\/td> \u505c\u6b62\u4f5c\u4e1a<\/td><\/tr> restart<\/td> \u91cd\u542f\u4f5c\u4e1a<\/td><\/tr> reload<\/td> \u91cd\u65b0\u52a0\u8f7d\u4f5c\u4e1a<\/td><\/tr> status<\/td> \u67e5\u770b\u4f5c\u4e1a\u72b6\u6001<\/td><\/tr> emit<\/td> \u547d\u4ee4\u4e8b\u4ef6\u53d1\u51fa\u7684\u8bf7\u6c42<\/td><\/tr> reload-configuration<\/td> \u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# initctl list<\/pre>\n\n\n\n
[root@linuxcool ~]# initctl start control-alt-delete<\/pre>\n\n\n\n
[root@linuxcool ~]# initctl status tty TTY=\/dev\/tty6<\/pre>\n\n\n\n
[root@linuxcool ~]# initctl reload tty TTY=\/dev\/tty6<\/pre>\n","protected":false},"excerpt":{"rendered":"