diff --git a/rattail_fabric2/postgresql.py b/rattail_fabric2/postgresql.py index 481f116..43870ab 100644 --- a/rattail_fabric2/postgresql.py +++ b/rattail_fabric2/postgresql.py @@ -54,6 +54,13 @@ def restart(c): c.sudo('systemctl restart postgresql.service') +def reload(c): + """ + Reload config for the PostgreSQL database service + """ + c.sudo('systemctl reload postgresql.service') + + def sql(c, sql, database='', port=None): """ Execute some SQL as the 'postgres' user.