summaryrefslogtreecommitdiff
path: root/roles/sapp
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-06-09 13:10:38 +0800
committerzhangzhihan <[email protected]>2020-06-09 13:10:38 +0800
commit829dd78560768c693bddca2519f1d637eef87748 (patch)
treea71e628aa1440e35a3180a83d84ee23e45465987 /roles/sapp
parent792ce3da1a3bc571ea318af6c76ad5111740864c (diff)
update
Diffstat (limited to 'roles/sapp')
-rw-r--r--roles/sapp/.DS_Storebin0 -> 6148 bytes
-rw-r--r--roles/sapp/tasks/main.yml7
-rw-r--r--roles/sapp/templates/sapp.toml.j24
3 files changed, 9 insertions, 2 deletions
diff --git a/roles/sapp/.DS_Store b/roles/sapp/.DS_Store
new file mode 100644
index 0000000..9c4f059
--- /dev/null
+++ b/roles/sapp/.DS_Store
Binary files differ
diff --git a/roles/sapp/tasks/main.yml b/roles/sapp/tasks/main.yml
index 7f76b3a..9261321 100644
--- a/roles/sapp/tasks/main.yml
+++ b/roles/sapp/tasks/main.yml
@@ -40,6 +40,13 @@
dest: /home/mesasoft/sapp_run/etc/gdev.conf
when: tsg_access_type == 1
+
+- name: "copy sapp.service destination server"
+ copy:
+ src: "{{ role_path }}/files/sapp.service"
+ dest: /usr/lib/systemd/system/
+ mode: 0755
+
- name: "enable sapp"
systemd:
name: sapp
diff --git a/roles/sapp/templates/sapp.toml.j2 b/roles/sapp/templates/sapp.toml.j2
index d8c18e4..dc037df 100644
--- a/roles/sapp/templates/sapp.toml.j2
+++ b/roles/sapp/templates/sapp.toml.j2
@@ -9,13 +9,13 @@
instance_name = "sapp4"
[CPU]
-{% if tsg_access_type == 0 %}
+{% if tsg_running_type == 0 %}
worker_threads=1
{% else %}
worker_threads={{ sapp.worker_threads }}
{% endif %}
### note, bind_mask, if you do not want to bind thread to special CPU core, keep it empty as []
-{% if tsg_access_type == 0 %}
+{% if tsg_running_type == 0 %}
bind_mask=[]
{% else %}
bind_mask=[{{ sapp.bind_mask }}]