poolmon.init 416 B

123456789101112131415161718
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. start() {
  5. local pidfile=/run/poolmon.pid
  6. ebegin "Starting poolmon"
  7. start-stop-daemon --pidfile "${pidfile}" --exec /usr/bin/poolmon -- ${OPTIONS}
  8. eend $?
  9. }
  10. stop() {
  11. local pidfile=/run/poolmon.pid
  12. ebegin "Stopping poolmon"
  13. start-stop-daemon --stop --pidfile "${pidfile}"
  14. eend $?
  15. }