[ipac] RE: Scheduling JBoss restarts

Nathaniel Rasmussen nrasmus at schlowlibrary.org
Sat May 24 14:42:18 EDT 2008


I'm sure there are less kludgy ways to do this but two simple batch files
scheduled in the task scheduler would do the trick:

In Notepad, create a new file with the following contents:
net stop HzApp (or whatever the "Service Name" is listed as in the
Properties page of the service)
Save it somewhere safe as HzApp_Stop.bat (make sure the .txt is not saved at
the end--you should show file extentions in the folder options of the
control panel first).

Create HzApp_Start.bat in the same manner with the following
net start HzApp

Then go to Start->All Programs->Accessories->System Tools->Scheduled Tasks
Add a Scheduled Task for each .bat file, and schedule it to run with and
account w/ Administrative privileges (it shouldn't take long for the stop
one to run--a minute or two is plenty of time.

Nathaniel



Date: Fri, 23 May 2008 09:32:43 -0400
> From: "Brandon Walker" <bwalker at wrhs.org>
> Subject: [ipac] Scheduling JBoss restarts
> To: "Dynix's Horizon Information Portal,        formerly iPac
> \(discussion\)"
>        <ipac at lists.tblc.org>
> Message-ID:
>        <85DD554C5174A14C99BE8BD14C655EAF0293EE89 at eastblvd.wrhs.org>
> Content-Type: text/plain; charset="us-ascii"
>
> How would I go about scheduling a restart of JBoss every night? We run
> everything off Windows servers.
>
>
>
> Brandon Walker
> bwalker at wrhs.org <BLOCKED::mailto:bwalker at wrhs.org>
> Library Technical Aide
> Western Reserve Historical Society
> http://www.wrhs.org <http://www.wrhs.org/>
> (216) 721-5722 ext. 271
>

-- 
Nathaniel Rasmussen
Computer Systems Administrator
Schlow Centre Region Library
211 South Allen Street
State College, PA 16801
814.237.6238 x214
814.238.8508 fax
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tblc.org/pipermail/ipac/attachments/20080524/bb0a443e/attachment.html 


More information about the ipac mailing list