systemd: Convert services (SySv init) to systemctl (systemd) commands

This commit is contained in:
Sebastien Badia
2015-05-12 09:16:53 +02:00
parent bcd9337764
commit 428e5d789f
5 changed files with 21 additions and 19 deletions

View File

@@ -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/