hddtemp-init 434 B

1234567891011121314151617181920212223
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2012 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need localmount
  6. }
  7. start() {
  8. ebegin "Starting hddtemp daemon"
  9. /sbin/start-stop-daemon --start --quiet --exec ${HDDTEMP_EXEC} \
  10. -- -d ${HDDTEMP_OPTS} ${HDDTEMP_DRIVES}
  11. eend $?
  12. }
  13. stop() {
  14. ebegin "Stopping hddtemp daemon"
  15. start-stop-daemon --stop --quiet --exec ${HDDTEMP_EXEC}
  16. eend $?
  17. }