[Gllug] Daily timed shutdown script

Dylan dylan at dylan.me.uk
Thu Jul 26 23:19:52 UTC 2007


Hello All,

I've been asked to put together a script which will shut down a server at a 
configurable time each day. So far so good - set up a cron job to check the 
time and halt the machine.

Unfortunately, the machine provides the following services: ftp (vsftp), nfs, 
samba (file and print,) cups, and ssh, along with performing gateway 
functions. Obviously, I would need to check, for each service, whether there 
is an active connection, and delay the shutdown until any such connections 
have terminated.

So, what experience and advice can anyone offer in these areas?

Thanks for any pointers.

Dylan
-- 
"The blizard was alone on Earth and knew no equal."
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list