@glicogh/healthcare-cdk 0.1.55 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# create supervisor config for audit_log queue
|
|
2
|
+
cat > $configuration_dir/supervisor.{{serviceName}}-service-audit_log-queue.conf <<EOL
|
|
3
|
+
[program:{{serviceName}}-service-audit_log-queue]
|
|
4
|
+
process_name=%(program_name)s_%(process_num)02d
|
|
5
|
+
command=php $service_dir/laravel/artisan queue:work microservicesqueue --queue=reporting.audit_logs --sleep=3 --tries=3
|
|
6
|
+
autostart=true
|
|
7
|
+
autorestart=true
|
|
8
|
+
stopasgroup=true
|
|
9
|
+
killasgroup=true
|
|
10
|
+
user=ubuntu
|
|
11
|
+
numprocs=2
|
|
12
|
+
redirect_stderr=true
|
|
13
|
+
stdout_logfile=$logs_dir/{{serviceName}}-service-audit_log-queue.log
|
|
14
|
+
EOL
|
|
15
|
+
sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-audit_log-queue.conf /etc/supervisor/conf.d/{{serviceName}}-service-audit_log-queue.conf
|
|
16
|
+
|
|
17
|
+
sudo systemctl restart supervisor
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# create supervisor config for audit_log queue
|
|
2
|
+
cat > $configuration_dir/supervisor.{{serviceName}}-service-audit_log-queue.conf <<EOL
|
|
3
|
+
[program:{{serviceName}}-service-audit_log-queue]
|
|
4
|
+
process_name=%(program_name)s_%(process_num)02d
|
|
5
|
+
command=php $service_dir/laravel/artisan queue:work microservicesqueue --queue=reporting.audit_logs --sleep=3 --tries=3
|
|
6
|
+
autostart=true
|
|
7
|
+
autorestart=true
|
|
8
|
+
stopasgroup=true
|
|
9
|
+
killasgroup=true
|
|
10
|
+
user=ubuntu
|
|
11
|
+
numprocs=2
|
|
12
|
+
redirect_stderr=true
|
|
13
|
+
stdout_logfile=$logs_dir/{{serviceName}}-service-audit_log-queue.log
|
|
14
|
+
EOL
|
|
15
|
+
sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-audit_log-queue.conf /etc/supervisor/conf.d/{{serviceName}}-service-audit_log-queue.conf
|
|
16
|
+
|
|
17
|
+
sudo systemctl restart supervisor
|