Fix systemd service scripts (#12)

This commit is contained in:
n0trax 2017-12-14 19:45:27 +01:00 committed by kokel
parent 2faa4e11dd
commit 7abc41ee92
6 changed files with 9 additions and 11 deletions

View file

@ -52,9 +52,6 @@ prometheus_install_path: /opt/prometheus
# directory for configuration files
prometheus_config_path: /etc/prometheus
# directory for PID files
prometheus_pid_path: /var/run/prometheus
# directory for temporary files
prometheus_download_path: /tmp

View file

@ -21,7 +21,6 @@ prometheus_rule_path: "{{ prometheus_config_path }}/rules"
prometheus_file_sd_config_path: "{{ prometheus_config_path }}/tgroups"
prometheus_db_path: /var/lib/prometheus
alertmanager_db_path: /var/lib/alertmanager
prometheus_pid_path: /var/run/prometheus
prometheus_download_path: /tmp
prometheus_workdir: "{{ prometheus_download_path }}/prometheus_workdir"

View file

@ -24,7 +24,6 @@
with_items:
- "{{ prometheus_install_path }}"
- "{{ prometheus_config_path }}"
- "{{ prometheus_pid_path }}"
- name: install helper utility "gosu"
include_tasks: install-gosu.yml

View file

@ -5,8 +5,6 @@ After=network.target
[Service]
Type=simple
PIDFile={{ prometheus_pid_path }}/alertmanager.pid
User={{ prometheus_user }}
Group={{ prometheus_group }}
@ -16,3 +14,6 @@ ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opt
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }}
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View file

@ -5,8 +5,6 @@ After=network.target
[Service]
Type=simple
PIDFile={{ prometheus_pid_path }}/node_exporter.pid
User={{ prometheus_user }}
Group={{ prometheus_group }}
@ -16,3 +14,6 @@ ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_opts }}
ExecStart={{ node_exporter_daemon_dir }}/node_exporter
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target

View file

@ -5,8 +5,6 @@ After=network.target
[Service]
Type=simple
PIDFile={{ prometheus_pid_path }}/prometheus.pid
User={{ prometheus_user }}
Group={{ prometheus_group }}
@ -16,3 +14,6 @@ ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }} {
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }}
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target