Advertisement
Guest User

acpid

a guest
Jan 12th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/sbin/runscript
  2. # Copyright 1999-2010 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.3-init.d,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
  5.  
  6. opts="reload"
  7.  
  8. depend() {
  9. need localmount
  10. use logger
  11. before hald
  12. }
  13.  
  14. start() {
  15. ebegin "Starting acpid"
  16. start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- ${ACPID_OPTIONS}
  17. eend $?
  18. }
  19.  
  20. stop() {
  21. ebegin "Stopping acpid"
  22. start-stop-daemon --stop --exec /usr/sbin/acpid
  23. eend $?
  24. }
  25.  
  26. reload() {
  27. ebegin "Reloading acpid configuration"
  28. start-stop-daemon --stop --oknodo --exec /usr/sbin/acpid --signal HUP
  29. eend $?
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement