X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcommon_sysadmin.sh;h=7f831e21aa4953214bdca0c13dc7044a73abd486;hb=5014baf97957923fc16403d4aa2614dd90d0f418;hp=4ab80ed3716e6092650b5e8b8b6c30763a9d9869;hpb=e1d98228d3974ace18a660002409de8db3daf541;p=feisty_meow.git diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index 4ab80ed3..7f831e21 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -186,6 +186,25 @@ function restart_bind() ############################################################################ +# samba server helper functions... + +function restart_samba +{ + echo restarting samba server. + service smbd restart + if [ $? -ne 0 ]; then + echo "The samba service did not restart properly. Please check the error logs." + exit 1 + fi + service nmbd restart + if [ $? -ne 0 ]; then + echo "The samba name service (nmbd) did not restart properly. This may not always be fatal, so we are ignoring it, but you may want to check the error logs." + fi + echo samba service restarted. +} + +############################################################################ + # apache2 methods... # removes a config file for apache given the app name and site name.