newrelic-sysmond.rc 501 B

123456789101112131415161718192021222324
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. use net
  6. }
  7. start() {
  8. ebegin "Starting NewRelic System Monitor"
  9. start-stop-daemon --start \
  10. --user newrelic \
  11. --exec /usr/sbin/nrsysmond -- \
  12. -c /etc/newrelic/nrsysmond.cfg \
  13. -p /var/run/newrelic/nrsysmond.pid
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping NewRelic System Monitor"
  18. start-stop-daemon --stop --pidfile /var/run/newrelic/nrsysmond.pid
  19. eend $?
  20. }