Skip to content

Commit 24aeb9f

Browse files
committed
Remove PID directory, forking startup scripts
Systemd now handles all that stuff.
1 parent 9f9545a commit 24aeb9f

File tree

12 files changed

+2
-259
lines changed

12 files changed

+2
-259
lines changed

api/api_ctl.j2

Lines changed: 0 additions & 70 deletions
This file was deleted.

api/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
mode: "u=rwx,go=rx"
1818
- dir: "{{ app.release_dir }}/logs"
1919
mode: "u=rwx,g=rwx,o="
20-
- dir: "{{ app.release_dir }}/pids"
21-
mode: "u=rwx,g=rwx,o="
2220
- dir: "{{ app.release_dir }}/api-root"
2321
mode: "u=rwx,go=rx"
2422
- name: Build {{ [app.name, app.version] | join('-') }}
@@ -40,5 +38,4 @@
4038
force: true
4139
loop:
4240
- { src: "logs", dst: logs }
43-
- { src: "pids", dst: pids }
4441
- { src: "api-root", dst: www }

api/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
owner: pgxn
1515
group: pgxn
1616
mode: "u=rwx,g=rx,o="
17-
loop: [api_ctl, api_sync]
17+
loop: [api_sync]
1818
- name: Setup Cron Environment
1919
ansible.builtin.cron:
2020
env: true

api/vars.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ opt:
1111
workers: 5
1212
maxreq: 100
1313
listen: 127.0.0.1:7497
14-
pid: pids/pgxn_api.pid
1514
log: logs/pgxn_api.log
1615
errors_to: [email protected]
1716
errors_from: [email protected]

manager/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
mode: "u=rwx,g=rx,o=rx"
1818
- dir: "{{ app.release_dir }}/logs"
1919
mode: "u=rwx,g=rwx,o="
20-
- dir: "{{ app.release_dir }}/pids"
21-
mode: "u=rwx,g=rwx,o="
2220
- dir: "{{ app.work_dir }}"
2321
mode: "u=rwx,g=rx,o=rx"
2422
- name: Download and Unpack
@@ -79,4 +77,3 @@
7977
force: true
8078
loop:
8179
- { src: "logs", dst: logs }
82-
- { src: "pids", dst: pids }

manager/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
owner: pgxn
1515
group: pgxn
1616
mode: "u=rwx,g=rx,o="
17-
loop: [mgr_ctl, mgr_mirrors]
17+
loop: [mgr_mirrors]
1818
- name: Configure {{ [app.dist_name, app.version] | join('-') }}
1919
ansible.builtin.template:
2020
# Password stored in 1Password as “PGXN Manager Secrets”

manager/mgr_ctl.j2

Lines changed: 0 additions & 92 deletions
This file was deleted.

manager/vars.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ opt:
1717
workers: 5
1818
maxreq: 100
1919
listen: 127.0.0.1:7496
20-
mgr_pid: pids/pgxn_manager.pid
2120
mgr_log: logs/pgxn_manager.log
2221
errors_to: [email protected]
2322
errors_from: [email protected]
2423
lag_hours: 2
2524
lag_days: 2
26-
cmr_pid: pids/pgxn_consumer.pid
2725
cmr_log: logs/pgxn_consumer.log
2826
interval: 5

site/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
mode: "u=rwx,g=rx,o=rx"
1818
- dir: "{{ app.release_dir }}/logs"
1919
mode: "u=rwx,g=rwx,o="
20-
- dir: "{{ app.release_dir }}/pids"
21-
mode: "u=rwx,g=rwx,o="
2220
- name: Build {{ [app.name, app.version] | join('-') }}
2321
ansible.builtin.command:
2422
chdir: "{{ app.release_dir }}"
@@ -39,4 +37,3 @@
3937
force: true
4038
loop:
4139
- { src: "logs", dst: logs }
42-
- { src: "pids", dst: pids }

site/deploy.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
ansible.builtin.include_vars:
88
file: vars.yml
99
name: app
10-
- name: Install Control Script
11-
ansible.builtin.template:
12-
src: "site_ctl.j2"
13-
dest: "{{ app.release_dir }}/{{ app.name }}-{{ app.version }}/bin/site_ctl"
14-
owner: pgxn
15-
group: pgxn
16-
mode: "u=rwx,g=rx,o="
1710
- name: Deploy {{ [app.name, app.version] | join('-') }}
1811
ansible.builtin.file:
1912
state: link

0 commit comments

Comments
 (0)