This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-terraform.git


The following commit(s) were added to refs/heads/main by this push:
     new ed92833  Refactor OAP systmed unit file (#10)
ed92833 is described below

commit ed92833bbdf895766806a0136928718f0cf8c311
Author: Rahul Bajaj <[email protected]>
AuthorDate: Sat Jul 29 22:34:23 2023 -0400

    Refactor OAP systmed unit file (#10)
---
 ansible/roles/skywalking/templates/skywalking-oap.service.j2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ansible/roles/skywalking/templates/skywalking-oap.service.j2 
b/ansible/roles/skywalking/templates/skywalking-oap.service.j2
index 241f472..8306913 100644
--- a/ansible/roles/skywalking/templates/skywalking-oap.service.j2
+++ b/ansible/roles/skywalking/templates/skywalking-oap.service.j2
@@ -21,9 +21,9 @@ After=network.target
 Type=simple
 ExecStart=/usr/local/skywalking/bin/oapService.sh
 TimeoutSec=300
-ExecStop=/bin/kill -SIGTERM $MAINPID
-ExecReload=/bin/kill -s HUP $MAINPID
-Restart=always
+KillMode=process
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target

Reply via email to