feat: replace systemctl commands with service equivalents
for sake of installing to devuan instead of debian, although the latter should still work okay iiuc..
This commit is contained in:
parent
1c7883393b
commit
1d2d4697ec
6 changed files with 9 additions and 9 deletions
|
|
@ -93,14 +93,14 @@ def restart(c):
|
|||
"""
|
||||
Restart the PostgreSQL database service
|
||||
"""
|
||||
c.sudo('systemctl restart postgresql.service')
|
||||
c.sudo("service postgresql restart")
|
||||
|
||||
|
||||
def reload_(c):
|
||||
"""
|
||||
Reload config for the PostgreSQL database service
|
||||
"""
|
||||
c.sudo('systemctl reload postgresql.service')
|
||||
c.sudo("service postgresql reload")
|
||||
|
||||
# TODO: deprecate / remove this
|
||||
reload = reload_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue