You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. # uci
  2. `disabled`, bool, default `0`
  3. `name`, string, name of the service instance
  4. `command`, file, the service instance executable
  5. `args`, list of args
  6. `stderr`, bool, default `0`, log stderr output of the service instance
  7. `stdout`, bool, default `0`, log stdout output of the service instance
  8. `env`, list of environment variable settings of the form `var=val`
  9. `file`, list of file names. Service instances will be restarted if content of
  10. these files have changed on service reload event.
  11. `respawn_threshold`, uinteger, default `3600`, time in seconds the instances
  12. have to be in running state to be considered a valid run
  13. `respawn_timeout`, uinteger, default `5`, time in seconds the instance should
  14. be delayed to start again after the last crash
  15. `respawn_maxfail`, uinteger, default `5`, maximum times the instances can
  16. crash/fail in a row and procd will not try to bring it up again after this
  17. limit has been reached
  18. # notes and faq
  19. Initial environment variables presented to service instances may be different
  20. from what was observed on the interactive terminal. E.g. `HOME=/` may affect
  21. reading `~/.ssh/known_hosts` of dropbear ssh instance.
  22. PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/ HOME=/
  23. If `list args xxx` seems to be too long causing pain, consider using `/bin/sh`
  24. as the `command`. It is also worth noting that uci supports multi-line option
  25. value.
  26. Child processes will keep running when their parent process was killed. This
  27. is especially the case and should be taken into account with option `command`
  28. being `/bin/sh` and it is recommended to use `exec` as the last shell command.