Browse Source

restart ynh-vpnclient service with ynh_systemd_action

HgO 1 year ago
parent
commit
79c0ed6e8e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      scripts/upgrade

+ 1 - 5
scripts/upgrade

@@ -156,11 +156,7 @@ fi
 ynh_print_info "Restart services..."
 
 # this is meant to propagate the new files and configs
-yunohost service restart $service_name
-
-# Not sure if these are really necessary ...
-systemctl -q is-active $service_checker_name       && systemctl restart $service_checker_name
-systemctl -q is-active $service_checker_name.timer && systemctl restart $service_checker_name.timer
+ynh_systemd_action --action=restart --service=$service_name
 
 #=================================================
 # END OF SCRIPT