systemd: Convert services (SySv init) to systemctl (systemd) commands
This commit is contained in:
@@ -21,9 +21,10 @@
|
||||
domain=$(sudo yunohost app setting hotspot domain)
|
||||
|
||||
# The End
|
||||
sudo service ynh-hotspot stop
|
||||
sudo systemctl stop ynh-hotspot
|
||||
sudo yunohost service remove ynh-hotspot
|
||||
sudo rm -f /etc/init.d/ynh-hotspot
|
||||
sudo systemctl disable ynh-hotspot
|
||||
sudo rm -f /lib/systemd/system/ynh-hotspot.service
|
||||
sudo rm -f /tmp/.ynh-hotspot-*
|
||||
|
||||
# Update firewall for DHCP
|
||||
@@ -43,7 +44,7 @@ sudo rm -f /lib/firmware/htc-9271.fw
|
||||
# Restart services
|
||||
sudo yunohost service stop php5-fpm
|
||||
sudo yunohost service start php5-fpm
|
||||
sudo service nginx reload
|
||||
sudo systemctl reload nginx
|
||||
|
||||
# Remove sources
|
||||
sudo rm -rf /var/www/wifiadmin/
|
||||
|
||||
Reference in New Issue
Block a user