acpid.initd 552 B

1234567891011121314151617181920212223
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. extra_started_commands="reload"
  5. command="/usr/bin/acpid"
  6. command_args="${ACPID_ARGS}"
  7. description="Daemon for Advanced Configuration and Power Interface"
  8. supervisor="supervise-daemon"
  9. command_args_foreground="--foreground"
  10. #pidfile="/run/acpid.pid"
  11. depend() {
  12. need localmount
  13. use logger
  14. }
  15. reload() {
  16. ebegin "Reloading acpid configuration"
  17. ${supervisor} ${RC_SVCNAME} --signal HUP --pidfile /run/acpid.pid
  18. eend $?
  19. }