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

@@ -176,9 +176,9 @@ sudo yunohost service enable php5-fpm
sudo yunohost service add ynh-vpnclient
sudo yunohost service enable ynh-vpnclient
sudo service ynh-vpnclient start
sudo systemctl start ynh-vpnclient --quiet
sudo service nginx reload
sudo systemctl reload nginx --quiet
# Update SSO for vpnadmin
sudo yunohost app ssowatconf
@@ -186,7 +186,8 @@ sudo yunohost app ssowatconf
# Restart hotspot service if installed (and started) to change NAT configuration (now on tun0)
# A new start will fix the interface without unsetting all stuff
if [ -e /tmp/.ynh-hotspot-started ]; then
sudo service ynh-hotspot start
sudo systemctl restart ynh-hotspot --quiet
sudo systemctl restart dnsmasq --quiet
fi
# Check configuration consistency

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/