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.

22 lines
353 B

  1. #!/bin/sh /etc/rc.common
  2. START=94
  3. USE_PROCD=1
  4. PROG="/usr/bin/motion"
  5. CONF="/etc/motion.conf"
  6. start_service() {
  7. local enabled
  8. config_load "motion"
  9. config_get_bool enabled "general" "enabled" 0
  10. [ "$enabled" -gt 0 ] || return 1
  11. procd_open_instance
  12. procd_set_param command "$PROG"
  13. procd_append_param command -c "$CONF"
  14. procd_close_instance
  15. }