Skip to content

Commit

Permalink
Remove the reboot flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Apr 15, 2024
1 parent 2779125 commit 8c6d2cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/pgbouncer.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ After=network.target

[Service]
Type=simple
# -R flag lets separate pgbouncer instances reuse sockets from previous instances, so on restart
# they'll reuse the same sockets, preserving connections.
ExecStartPre=-/usr/bin/install -o snap_daemon -g snap_daemon -m 700 -d \
/var/snap/charmed-postgresql/common/var/log/pgbouncer/{{ app_name }}/instance_%i/ \
{{ snap_tmp_dir }}/{{ app_name }}/instance_%i/
ExecStart=/snap/bin/charmed-postgresql.pgbouncer-server -R {{ conf_dir }}/{{ app_name }}/instance_%i/pgbouncer.ini
ExecStart=/snap/bin/charmed-postgresql.pgbouncer-server {{ conf_dir }}/{{ app_name }}/instance_%i/pgbouncer.ini
KillSignal=SIGINT
ExecReload=kill -HUP $MAINPID
Restart=always
Expand Down

0 comments on commit 8c6d2cb

Please sign in to comment.