1
0

acme.init 477 B

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