°Ô½Ã¹° 1,369°Ç
   
Ubuntu 18.04 rc.local »ç¿ë
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-10-23 (È­) 16:06 Á¶È¸ : 11717
±ÛÁÖ¼Ò :
                                
OS : Ubuntu 18.04 LTS 


rc.local ÆÄÀÏ»ý¼º 
$ sudo cat >> /etc/rc.local <<EOF
#!/bin/bash
exit 0
EOF


½ÇÇà ±ÇÇѺο© 
$ sudo chmod +x /etc/rc.local


ÆÄÀÏ ³»¿ë Ãß°¡
$ cat /lib/systemd/system/rc-local.service
...........................
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

[Install]
WantedBy=multi-user.target


rc-local ¼­ºñ½º È°¼ºÈ­
$ sudo systemctl enable rc-local.service
Created symlink /etc/systemd/system/multi-user.target.wants/rc-local.service -> /lib/systemd/system/rc-local.service.

$ sudo systemctl start rc-local.service

$ sudo systemctl status rc-local.service
¡Ü rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           ¦¦¦¡debian.conf
   Active: active (exited) since Mon 2018-10-22 13:49:01 KST; 1 day 2h ago
     Docs: man:systemd-rc-local-generator(8)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/rc-local.service

Oct 22 13:48:57 ssd-osd-210-220 systemd[1]: Starting /etc/rc.local Compatibility...
Oct 22 13:49:01 ssd-osd-210-220 systemd[1]: Started /etc/rc.local Compatibility.




À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.