monitoring - containerized Prometheus and Grafana on HypriotOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
392 B

  1. # /lib/systemd/system/monitoring.service
  2. [Unit]
  3. Description=Monitoring Stack Docker Compose Application
  4. Requires=docker.service
  5. After=docker.service
  6. [Service]
  7. User=pirate
  8. Type=oneshot
  9. RemainAfterExit=yes
  10. WorkingDirectory=/home/pirate/monitoring
  11. ExecStart=/usr/local/bin/docker-compose up -d
  12. ExecStop=/usr/local/bin/docker-compose down
  13. TimeoutStartSec=0
  14. [Install]
  15. WantedBy=multi-user.target