diff --git a/deploy/ansible.yml b/deploy/ansible.yml index e3681b13b..8316a2f41 100644 --- a/deploy/ansible.yml +++ b/deploy/ansible.yml @@ -35,7 +35,7 @@ mode: 0555 - name: shell - shell: cd {{ deploy_dir }}/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-callback + shell: cd {{ deploy_dir }}/conf && sed -i 's/runmode\s*=\s*.*/runmode = {{ runmode }}/' app.conf && sudo systemctl restart jx-api when: runmode == "api" - name: shell diff --git a/deploy/jx-callback.service b/deploy/jx-api.service similarity index 62% rename from deploy/jx-callback.service rename to deploy/jx-api.service index 418d006df..da7fb4214 100644 --- a/deploy/jx-callback.service +++ b/deploy/jx-api.service @@ -1,5 +1,5 @@ [Unit] -Description=jx-callback service +Description=jx-api service Wants=mysql.service After=network.target After=mysql.service @@ -18,7 +18,7 @@ Restart=always RestartSec=500ms WorkingDirectory=/jxdata/jx-callback-api -ExecStart=/bin/sh -c '/jxdata/jx-callback/jx-callback-api >> /jxdata/jx-callback/jx-callback-api/jx-callback.log 2>&1' +ExecStart=/bin/sh -c '/jxdata/jx-callback-api/jx-callback >> /jxdata/jx-callback-api/jx-callback.log 2>&1' [Install] WantedBy=multi-user.target \ No newline at end of file