Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Restore pd service name (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0127 authored Mar 15, 2019
1 parent 950cd00 commit d3958bb
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion graceful_stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
when: process_supervision == 'supervise'

- name: stop PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=stopped
systemd: name=pd.service state=stopped
become: true
when: process_supervision == 'systemd'

Expand Down
2 changes: 1 addition & 1 deletion roles/pd/tasks/supervise_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
name: supervise
vars:
this_role_name: pd
service_name: pd-{{ pd_client_port }}
service_name: pd
2 changes: 1 addition & 1 deletion roles/pd/tasks/systemd_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
name: systemd
vars:
this_role_name: pd
service_name: pd-{{ pd_client_port }}
service_name: pd
4 changes: 2 additions & 2 deletions rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
when: process_supervision == 'supervise'

- name: stop PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=stopped
systemd: name=pd.service state=stopped
become: true
when: process_supervision == 'systemd'

Expand All @@ -93,7 +93,7 @@
when: process_supervision == 'supervise'

- name: start PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=started
systemd: name=pd.service state=started
become: true
when: process_supervision == 'systemd'

Expand Down
2 changes: 1 addition & 1 deletion start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
- pd

- name: start PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=started enabled=no
systemd: name=pd.service state=started enabled=no
become: true
when: process_supervision == 'systemd'

Expand Down
2 changes: 1 addition & 1 deletion stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
- pd

- name: stop PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=stopped
systemd: name=pd.service state=stopped
become: true
when: process_supervision == 'systemd'

Expand Down
2 changes: 1 addition & 1 deletion unsafe_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
become: true
when: process_supervision == 'systemd'
with_items:
- pd-{{ pd_client_port }}.service
- pd.service

- hosts: grafana_servers
tasks:
Expand Down
2 changes: 1 addition & 1 deletion unsafe_cleanup_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
- pd

- name: stop PD by systemd
systemd: name=pd-{{ pd_client_port }}.service state=stopped
systemd: name=pd.service state=stopped
become: true
when: process_supervision == 'systemd'

Expand Down

0 comments on commit d3958bb

Please sign in to comment.