diff --git a/src-ES/easy-samba b/src-ES/easy-samba index f2632cb..1779a8d 100755 --- a/src-ES/easy-samba +++ b/src-ES/easy-samba @@ -401,9 +401,12 @@ function restartSamba() { echo "* Reiniciando servicios de Samba" sleep 3 /etc/init.d/samba restart &> /dev/null - systemctl restart smbd.service 2> /dev/null - systemctl restart nmbd.service 2> /dev/null - systemctl restart smb.service 2> /dev/null + /etc/init.d/nmbd restart &> /dev/null + /etc/init.d/smbd restart &> /dev/null + systemctl restart smbd 2> /dev/null + systemctl restart nmbd 2> /dev/null + systemctl restart smb 2> /dev/null + systemctl restart nmb 2> /dev/null echo "* Servicios de Samba reiniciados" echo "" sleep 3 diff --git a/src-ES/easy-samba-gtk b/src-ES/easy-samba-gtk index 94ed548..8abfa7e 100755 --- a/src-ES/easy-samba-gtk +++ b/src-ES/easy-samba-gtk @@ -367,9 +367,12 @@ function newFolderPrintable() { function reiniciandoSamba() { sleep 2 /etc/init.d/samba restart &> /dev/null - systemctl restart smbd.service 2> /dev/null - systemctl restart nmbd.service 2> /dev/null - systemctl restart smb.service 2> /dev/null + /etc/init.d/nmbd restart &> /dev/null + /etc/init.d/smbd restart &> /dev/null + systemctl restart smbd 2> /dev/null + systemctl restart nmbd 2> /dev/null + systemctl restart smb 2> /dev/null + systemctl restart nmb 2> /dev/null } # Funcion para reiniciar el servicio de Samba diff --git a/src/easy-samba b/src/easy-samba index cec3b76..5a6e796 100755 --- a/src/easy-samba +++ b/src/easy-samba @@ -401,9 +401,12 @@ function restartSamba() { echo "* Restarting Samba services" sleep 3 /etc/init.d/samba restart &> /dev/null - systemctl restart smbd.service 2> /dev/null - systemctl restart nmbd.service 2> /dev/null - systemctl restart smb.service 2> /dev/null + /etc/init.d/nmbd restart &> /dev/null + /etc/init.d/smbd restart &> /dev/null + systemctl restart smbd 2> /dev/null + systemctl restart nmbd 2> /dev/null + systemctl restart smb 2> /dev/null + systemctl restart nmb 2> /dev/null echo "* Samba services restarted" echo "" sleep 3 diff --git a/src/easy-samba-gtk b/src/easy-samba-gtk index 7675049..5715b74 100755 --- a/src/easy-samba-gtk +++ b/src/easy-samba-gtk @@ -370,9 +370,12 @@ function newFolderPrintable() { function reiniciandoSamba() { sleep 2 /etc/init.d/samba restart &> /dev/null - systemctl restart smbd.service 2> /dev/null - systemctl restart nmbd.service 2> /dev/null - systemctl restart smb.service 2> /dev/null + /etc/init.d/nmbd restart &> /dev/null + /etc/init.d/smbd restart &> /dev/null + systemctl restart smbd 2> /dev/null + systemctl restart nmbd 2> /dev/null + systemctl restart smb 2> /dev/null + systemctl restart nmb 2> /dev/null } # Funcion para reiniciar el servicio de Samba