1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user