Browse Source

Remove timer before service to prevent systemd displaying a boring warning

Alexandre Aubin 3 years ago
parent
commit
f73aba13f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/remove

+ 2 - 2
scripts/remove

@@ -38,10 +38,10 @@ app=$YNH_APP_INSTANCE_NAME
 #=================================================
 ynh_print_info "Stopping and removing services"
 
-systemctl stop $service_checker_name
-systemctl disable $service_checker_name --quiet
 systemctl stop $service_checker_name.timer && sleep 1
 systemctl disable $service_checker_name.timer --quiet
+systemctl stop $service_checker_name
+systemctl disable $service_checker_name --quiet
 
 if ynh_exec_warn_less yunohost service status $service_name >/dev/null
 then