This commit is contained in:
邹宗楠
2022-08-03 17:19:22 +08:00
parent e92ee33ee0
commit 0e59a39006
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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