rc.local.service와 rc-local.service의 차이점

rc.local.service와 rc-local.service의 차이점

심볼릭 링크가 있습니다

/lib/systemd/system/rc.local.service -> rc-local.service

나는 다음을 사용하여 다른 출력을 얻습니다.

systemctl status rc.local.service
● rc.local.service - /etc/rc.local Compatibility
   Loaded: loaded (/etc/systemd/system/rc.local.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

그리고

systemctl status rc-local.service
● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: active (exited) since Do 2016-04-21 09:12:58 CEST; 1h 1min ago
  Process: 1503 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)

Apr 21 09:12:58 ubuntu systemd[1]: Starting /etc/rc.local Compatibility...
Apr 21 09:12:58 ubuntu systemd[1]: Started /etc/rc.local Compatibility.

이것이 올바른 설정입니까? 그리고 심볼릭 링크 서비스를 호출하는 차이점은 무엇입니까?

이런 식으로 /etc/rc.local 파일이 두 번 실행되지 않습니까?

(Ubuntu 15.10 및 16.04에서 테스트됨)


편집하다:

ls -lahi /etc/systemd/system/rc* /lib/systemd/system/rc*local.service 
1980102 -rw-r--r-- 1 root root 650 Nov 10  2015 /etc/systemd/system/rc-local.service
1980094 -rw-r--r-- 1 root root 650 Nov 10  2015 /etc/systemd/system/rc.local.service
2891510 -rw-r--r-- 1 root root 612 Sep  7 11:32 /lib/systemd/system/rc-local.service
2906434 lrwxrwxrwx 1 root root  16 Sep  7 11:33 /lib/systemd/system/rc.local.service -> rc-local.service

관련 정보