linux¹Ø»úÏÂÁîinit 0¹ýʱÁËÂð
linux ¹Ø»úÏÂÁî init 0 Òѹýʱ£¬È¡¶ø´úÖ®µÄÊÇ systemd ÊØ»¤Àú³Ì£¬ÓÉÓÚËüÌṩÁ˸üΪÏÖ´ú»¯µÄ¹Ø»úÀú³Ì£¬°üÀ¨ÒÀÀµ¹ØϵÖÎÀí¡¢ÈÕÖ¾¼Í¼¡¢¸üÇå¾²µÄ¹Ø»ú²Ù×÷ºÍͳһµÄ¹Ø»ú½çÃæ¡£
Linux ¹Ø»úÏÂÁî init 0 Òѹýʱ
Ëæ×Å Linux Äں˵ÄÉú³¤ºÍ Systemd ÊØ»¤Àú³ÌµÄÆÕ¼°£¬init 0 ÏÂÁîÒÑÖð½¥±»ÒÔΪ¹ýʱ¡£ÒÔÏÂÊÇËüµÄ¹ýʱԵ¹ÊÔÓÉ£º
1. Systemd µÄÆÕ±é½ÓÄÉ
Systemd ÊÇÒ»¸öÏÖ´ú»¯µÄϵͳºÍЧÀÍÖÎÀíÆ÷£¬ËüÈ¡´úÁ˹ŰåµÄ init ϵͳ£¬°üÀ¨ init 0 ÏÂÁî¡£Systemd ÌṩÁ˸ü¸ß¼¶µÄ¹¦Ð§£¬ÀýÈçÒÀÀµ¹ØϵÖÎÀí¡¢ÈÕÖ¾¼Í¼ºÍ¹ÊÕϼà¿Ø¡£
2. ¸üÇå¾²ºÍÎȹ̵ĹػúÀú³Ì
init 0 ÏÂÁîÖ±½Ó¹Ø±Õϵͳ£¬Õâ¿ÉÄܻᵼÖÂÊý¾Ýɥʧ»òϵͳË𻵡£Systemd ½ÓÄÉÁ×ÆüÇå¾²ºÍÎȹ̵ĹػúÀú³Ì£¬Ëü»áÏÈ×èÖ¹ËùÓÐЧÀÍ£¬È»ºó²Å¹Ø±Õϵͳ¡£
3. ͳһµÄ¹Ø»ú½çÃæ
Systemd ÌṩÁËÒ»¸öͳһµÄ¹Ø»ú½çÃ棬ÔÊÐíÓû§Ê¹ÓöàÖÖÏÂÁî¹Ø±Õϵͳ¡£ÕâЩÏÂÁî°üÀ¨ systemctl poweroff¡¢systemctl halt ºÍ systemctl reboot¡£
4. ½ÓÊÜÐźŵÄÌæ»»¼Æ»®
init 0 ÏÂÁî½ÓÊÜ SIGINT ºÍ SIGTERM ÐźÅÀ´¹Ø±Õϵͳ¡£È»¶ø£¬Systemd ÌṩÁ˸üÇ¿Ê¢µÄÌæ»»¼Æ»®£¬ÀýÈç shutdown ÏÂÁËüÔÊÐíÓû§Ö¸¶¨¹Ø±ÕµÄʱ¼ä¡¢ÐÂÎźÍÆäËûÑ¡Ïî¡£
Òò´Ë£¬ÔÚµ±½ñµÄ Linux ϵͳÖУ¬²»½¨ÒéÔÙʹÓà init 0 ÏÂÁȡ¶ø´úÖ®µÄÊÇ£¬Óû§Ó¦¸ÃʹÓà Systemd ÌṩµÄÏÖ´ú»¯¹Ø»úÏÂÁÀýÈç systemctl poweroff¡£
ÒÔÉϾÍÊÇlinux¹Ø»úÏÂÁîinit 0¹ýʱÁËÂðµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡