Notify everybody
Optionally close the shares
user@server:~$ sudo smbcontrol smbd close-share apps
user@server:~$ sudo smbcontrol smbd close-share homes
Stop the Samba server
user@server:~$ sudo /etc/init.d/samba stop
This will not kill all smbd
processes.
(Optionally) update and upgrade the server
user@server:~$ sudo apt-get update
user@server:~$ sudo apt-get dist-upgrade
Reboot the server
Log in on the console, and reboot:
user@server:~$ sudo reboot
Optionally remount the shares on the clients
Clients reclaim their shares on the rebooted server. I don't know whether any data loss occurs in running processes. It looks like some clients reclaim their shares, but as some hadn't got them any more. We may have to remount them. Write a Landscape script that says:
#!/bin/bash mount -a
I didn't though. The users had better reboot.
Notify the users of running machines that this is an ideal time to reboot.