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

This commit is contained in:
Sebastien Badia
2015-05-13 01:25:10 +02:00
parent 67cf007622
commit 67328ed1a7
5 changed files with 20 additions and 19 deletions

View File

@@ -21,7 +21,7 @@
domain=$(sudo yunohost app setting vpnclient domain)
# The End
sudo service ynh-vpnclient stop
sudo systemctl stop ynh-vpnclient --quiet
sudo yunohost service remove ynh-vpnclient
sudo rm -f /etc/init.d/ynh-vpnclient
sudo rm -f /tmp/.ynh-vpnclient-*
@@ -37,7 +37,7 @@ sudo rm -rf /etc/openvpn/keys/
# Restart services
sudo yunohost service stop php5-fpm
sudo yunohost service start php5-fpm
sudo service nginx reload
sudo systemctl reload nginx --quiet
# Remove sources
sudo rm -rf /var/www/vpnadmin/