chronyはsystemd未対応(サービスファイルがない。しかし自動起動する。原因を調査)
chronyインストール後の状況
systemd用サービスファイルがパッケージに含まれず
$ dpkg -L chrony | egrep system $ systemctl list-unit-files | egrep chrony $
再起動後、何故か起動している。
$ sudo chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^- next.kkyy.me 2 6 377 8 +5858us[+5858us] +/- 225ms ^- secure.opticnerve.asia 2 8 367 203 +3836us[+3836us] +/- 104ms ^+ mail.moe.cat 2 7 377 72 +7065us[+7065us] +/- 32ms ^* ec2-54-64-6-78.ap-northea 2 8 377 957 +352us[ +178us] +/- 31ms
想定される原因
systemd未対応アプリがあった場合に、/etc/init.d配下のスクリプトを実行する仕組みあり。
alpha.mixi.co.jp
自動起動設定
$ sudo systemctl disable chrony chrony.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install disable chrony insserv: warning: current start runlevel(s) (empty) of script `chrony' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `chrony' overrides LSB defaults (0 1 6). $ sudo systemctl enable chrony chrony.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable chrony insserv: warning: current start runlevel(s) (empty) of script `chrony' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `chrony' overrides LSB defaults (0 1 6)
警告は出るが設定はされる(動作確認済み)