parent
ca2f280d24
commit
b84d0c8d90
6 changed files with 132 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
--- |
||||
|
||||
- name: restart akeneo-pim |
||||
service: name={{ item }} state=restarted |
||||
loop: |
||||
- akeneo-pim_{{ pim_id }}-jobs |
||||
- akeneo-pim_{{ pim_id }}-events-api |
@ -0,0 +1,8 @@ |
||||
--- |
||||
|
||||
- name: Start services |
||||
service: name={{ item }} state=started enabled=True |
||||
loop: |
||||
- akeneo-pim_{{ pim_id }}-jobs |
||||
- akeneo-pim_{{ pim_id }}-events-api |
||||
tags: pim |
@ -0,0 +1,22 @@ |
||||
[Unit] |
||||
Description=Akeneo Events API worker for PIM {{ pim_id }} |
||||
|
||||
[Service] |
||||
User={{ pim_user }} |
||||
Group={{ pim_user }} |
||||
WorkingDirectory={{ pim_root_dir }}/app |
||||
ExecStart=/bin/php{{ pim_php_version }} bin/console messenger:consume webhook --env=prod |
||||
PrivateTmp=yes |
||||
PrivateDevices=yes |
||||
ProtectSystem=full |
||||
ProtectHome=yes |
||||
NoNewPrivileges=yes |
||||
MemoryLimit=1024M |
||||
SyslogIdentifier=akeneo-pim_{{ pim_id }}-events-api |
||||
Restart=on-failure |
||||
StartLimitInterval=0 |
||||
RestartSec=30 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
||||
|
@ -0,0 +1,22 @@ |
||||
[Unit] |
||||
Description=Akeneo jobs worker for PIM {{ pim_id }} |
||||
|
||||
[Service] |
||||
User={{ pim_user }} |
||||
Group={{ pim_user }} |
||||
WorkingDirectory={{ pim_root_dir }}/app |
||||
ExecStart=/bin/php{{ pim_php_version }} bin/console akeneo:batch:job-queue-consumer-daemon --env=prod |
||||
PrivateTmp=yes |
||||
PrivateDevices=yes |
||||
ProtectSystem=full |
||||
ProtectHome=yes |
||||
NoNewPrivileges=yes |
||||
MemoryLimit=1024M |
||||
SyslogIdentifier=akeneo-pim_{{ pim_id }}-jobs |
||||
Restart=on-failure |
||||
StartLimitInterval=0 |
||||
RestartSec=30 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
||||
|
Loading…
Reference in new issue