README.runit 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Using the dropbear SSH server with runit's services supervision
  2. ---------------------------------------------------------------
  3. The dropbear SSH server is perfectly suited to be run under runit's
  4. service supervision, and this package already has prepared an adequate
  5. service directory. Follow these steps to enable the dropbear service
  6. using the runit package.
  7. If not yet installed on your system, install the runit package, and make
  8. sure its service supervision is enabled (it's by default)
  9. # apt-get install runit
  10. Make sure the dropbear service normally handled through the sysv init
  11. script is stopped
  12. # /etc/init.d/dropbear stop
  13. Create the system user ``dropbearlog'' which will run the logger service,
  14. and own the logs
  15. # adduser --system --home /var/log/dropbear --no-create-home dropbearlog
  16. Create the log directory and make the newly created system user the owner
  17. of this directory
  18. # mkdir -p /var/log/dropbear && chown dropbearlog /var/log/dropbear
  19. Optionally adjust the configuration of the dropbear service by editing the
  20. run script
  21. # vi /etc/dropbear/run
  22. Finally enable the service through runit's update-service(8) program, the
  23. service will be started within five seconds, and automatically at boot
  24. time, and the sysv init script will automatically be disabled; see the
  25. sv(8) program for information on how to control services handled by runit.
  26. See the svlogd(8) program on how to configure the log service.
  27. # update-service --add /etc/dropbear
  28. Optionally check the status of the service a few seconds later
  29. # sv status dropbear
  30. -- Gerrit Pape <pape@smarden.org>, Fri, 02 Mar 2007 20:41:08 +0000