Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. SERVICE START
  2. # ------------------------------------------------------------------------
  3. systemctl status bash_exporter
  4. ● bash_exporter.service - Bash Exporter
  5. Loaded: loaded (/etc/systemd/system/bash_exporter.service; enabled; vendor preset: disabled)
  6. Active: failed (Result: exit-code) since mar. 2020-01-21 18:18:37 CET; 2s ago
  7. Process: 47845 ExecStart=/usr/local/bin/bash_exporter -path /root/scripts/ -interval 300 (code=exited, status=1/FAILURE)
  8. Main PID: 47845 (code=exited, status=1/FAILURE)
  9.  
  10. janv. 21 18:18:37 test001.matoodc.global systemd[1]: Started Bash Exporter.
  11. janv. 21 18:18:37 test001.matoodc.global systemd[1]: Starting Bash Exporter...
  12. janv. 21 18:18:37 test001.matoodc.global systemd[1]: bash_exporter.service: main process exited, code=exited, status=1/FAILURE
  13. janv. 21 18:18:37 test001.matoodc.global systemd[1]: Unit bash_exporter.service entered failed state.
  14. janv. 21 18:18:37 test001.matoodc.global systemd[1]: bash_exporter.service failed.
  15.  
  16.  
  17. # SYSTEMD
  18. # ---------------------------------------------------------------------------------
  19. $ cat /etc/systemd/system/bash_exporter.service
  20. [Unit]
  21. Description=Bash Exporter
  22. Wants=network-online.target
  23. After=network-online.target
  24.  
  25. [Service]
  26. User=node_exporter
  27. Group=node_exporter
  28. Type=simple
  29. ExecStart=/usr/local/bin/bash_exporter -path /root/scripts/ -interval 300
  30.  
  31. [Install]
  32. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement