[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What file to add command to start at bootime

Cao Van Khanh wrote:
> I have some script and would like to run it at boot time . I could not
> find how to do that in debian . In redhat I could add to /etc/rc.d . How
> to make it in debian ?
> Thank for reading

Copy the /etc/init.d/skeleton file to your own name, edit it as you
see fit to do whatever it is you need.  Then install the symlinks to
the other rc directories.

  cd /etc/init.d
  cp skeleton mystartrc
  editor mystartrc
  update-rc.d mystartrc defaults

To remove the script and symlinks:

  cd /etc/init.d
  rm mystartrc
  update-rc.d mystartrc remove


Attachment: signature.asc
Description: Digital signature

Reply to: