Fix restart samba service on Arch Linux

This commit is contained in:
q3aql 2022-04-06 22:53:23 +02:00
parent 808c25ac51
commit 3556d5ddc4
4 changed files with 24 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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