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.

33 lines
459 B

  1. #!/bin/sh /etc/rc.common
  2. USE_PROCD=1
  3. START=50
  4. SCRIPT=/usr/lib/acme/run-acme
  5. start_service() {
  6. procd_open_instance
  7. procd_set_param command $SCRIPT
  8. procd_set_param file /etc/config/acme
  9. procd_set_param stdout 1
  10. procd_set_param stderr 1
  11. procd_close_instance
  12. }
  13. reload_service() {
  14. rc_procd start_service "$@"
  15. return 0
  16. }
  17. stop_service() {
  18. return 0
  19. }
  20. boot() {
  21. touch "/var/run/acme_boot"
  22. start
  23. }
  24. service_triggers() {
  25. procd_add_reload_trigger acme
  26. }