インストールしたプログラムをboot時に起動する方法

  • 投稿日:
  • by
  • カテゴリ:

update-rc.dを使う。

raspbian上での反応;

update-rc.d: error: --help
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force

The disable|enable API is not stable and might change in the future.
root@pi:/var/log/samba#

例えばbind9 を apt-get -install bind9 して、/etc/init.d/にbind9が出来上がったり、一通りの設定が終わったら

# update-rc.d bind9 defaults

でサービスが登録される。