fredbloggs;436925 Wrote: > Thanks for that, figured that'd be one way to do it, i'm using Windows > which is why I'll look into some kind of service shutdown procedure. > Know how to do scripts on server shutdown but SC will probably be > finished before that happens so wouldn't switch the communications. > > Just wanted to see if your plugin would do it, i'll try something > else. > > Cheers Actually, this feature might not be that hard to add to SrvrPowerCtrl. Plugins can have a shutdownPlugin() function that SqueezeCenter is supposed to call when the service exits. I think this facility was originally designed to make it possible for SqueezeCenter to dynamically load and unload plugins...something that the SC developers have abandoned.
Anyway, the questions are: 1). Does shutdownPlugin() get called reliably by SC. 2). When called, is there enough time to send the players to SN. 3). Is there a way to distinguish between a service stop (i.e. system halt) and a service restart...i.e a system restart. I assume that in the latter case, you wouldn't want all your players shuttled over to SN. So...I'll experiment with this. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins