Fix restart samba service on Arch Linux
This commit is contained in:
parent
808c25ac51
commit
3556d5ddc4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user