Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Restart Samba script

I'm having some strange problems with my windows services. I need to restart it several times a day to keep my windows machines hitting their home directories and printing.

Does anyone have a good way to automatically restart windows services on a regular basis? I had a script I used to use years ago on a Linux machine, but don't remember how I did it.

Thanks!

lots, Mac OS X (10.4.10)

Posted on Oct 9, 2007 3:38 PM

Reply
Question marked as Best reply

Posted on Oct 9, 2007 4:10 PM

#!/bin/bash

killall -TERM smbd
killall -TERM nmbd
/System/Library/StartupItems/Samba/Samba start
exit 0


Roger
3 replies
Question marked as Best reply

Oct 9, 2007 4:10 PM in response to CCSTechDir

#!/bin/bash

killall -TERM smbd
killall -TERM nmbd
/System/Library/StartupItems/Samba/Samba start
exit 0


Roger

Restart Samba script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.