[Ubuntu] rc.local
우분투를 설치하면 rc.local 이 없다. 찾아보니 추가를 해줘야 된다고 하네 ① 파일생성 /etc/rc.local #!/bin/bash exit 0 ② 실행파일로 변경 sudo chmod +x /etc/rc.local ③ 서비스 생성 /lib/systemd/system/rc-local.service 파일 열기 붉은 색 부분 추가 [Unit] Description=/etc/rc.local Compatibility Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=/etc/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.local start Ti..
2021.07.27