Advertisement
sergio_educacionit

samba_start.sh

Feb 28th, 2024 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. # Levantar punto de montaje.
  5.  
  6. systemctl start var-samba.mount
  7.  
  8.  
  9. # evaluamos con una sentencia 'if' si el servicio 'var-samba.mount' se ha ejecutado.
  10.  
  11. if systemctl is-active var-samba.mount; then
  12.  
  13. # si 'is-active' devuelve exit status 0
  14.  
  15. systemctl start nmbd.service
  16.  
  17. fi
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement