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
|
|
@ -146,18 +146,18 @@ def restart(c):
|
|||
"""
|
||||
Restart the Apache web service
|
||||
"""
|
||||
c.sudo('systemctl restart apache2.service')
|
||||
c.sudo("service apache2 restart")
|
||||
|
||||
|
||||
def stop(c):
|
||||
"""
|
||||
Stop the Apache web service
|
||||
"""
|
||||
c.sudo('systemctl stop apache2.service')
|
||||
c.sudo("service apache2 stop")
|
||||
|
||||
|
||||
def start(c):
|
||||
"""
|
||||
Start the Apache web service
|
||||
"""
|
||||
c.sudo('systemctl start apache2.service')
|
||||
c.sudo("service apache2 start")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue