jasne, v Scheduled tasks vyrobit task s odkazom napr na batak alebo cmd ci iny skript, takto to vyzera u nas, ked je planovany restart lotus notes servera. da sa nastavit aj timeout, dokedy ma windows cakat na start/stop servisu, pripadne mozes pouzit nasilny nastroj taskkill kde ako parameter pouzijes PID procesu a dalsie prepinace. Mozes presne definovat nazov procesu a potom sa nan dalej v texte odvolavat. niektore programy, ako kill exe je samozrejme dodany extra, ale da sa pouzit aj taskkill. @Echo off REM **************************************************************** REM * Batch to stop and restart Lotus Domino running as service REM * REM * REM **************************************************************** SET VolumeName=D: SET ToolsDir=C:\maintenance SET LogDir=%ToolsDir%\log SET NotesServiceName="Lotus Domino Server (notesdat)" SET ProcessName1=nserver.exe SET ProcessName2=nservice.exe SET ProcessName3=namgr.exe SET ProcessName4=nhttp.exe SET ProcessName5=ndiiop.exe SET ProcessName6=nreplica.exe SET ProcessName7=nrouter.exe SET ProcessName8=nupdate.exe SET ProcessName9=ntmmscan.exe SET ProcessName10=nrepscan.exe SET ProcessName11=nevent.exe SET ProcessName12=nupdall.exe SET ProcessName13=nadminp.exe SET ProcessName14=ncldbdir.exe SET ProcessName15=nclrepl.exe SET ProcessName16=ncronos.exe SET ProcessName17=nsrpm.exe SET ProcessName18=nsrexecd.exe REM **************************************************************** if not exist %LogDir%\ md %LogDir% REM stop Domino Server when is running as Service NET STOP %NotesServiceName% ECHO Waiting 10 minutes for Notes server shutdown to complete... %ToolsDir%\sleep.exe 600 REM Kill The process if it is still running %ToolsDir%\kill %ProcessName1% %ToolsDir%\kill %ProcessName2% %ToolsDir%\kill %ProcessName3% %ToolsDir%\kill %ProcessName4% %ToolsDir%\kill %ProcessName5% %ToolsDir%\kill %ProcessName6% %ToolsDir%\kill %ProcessName7% %ToolsDir%\kill %ProcessName8% %ToolsDir%\kill %ProcessName9% %ToolsDir%\kill %ProcessName10% %ToolsDir%\kill %ProcessName11% %ToolsDir%\kill %ProcessName12% %ToolsDir%\kill %ProcessName13% %ToolsDir%\kill %ProcessName14% %ToolsDir%\kill %ProcessName15% %ToolsDir%\kill %ProcessName16% %ToolsDir%\kill %ProcessName17% %ToolsDir%\kill %ProcessName18% c:\noteswrk\nfixup D:\notesdat\ifx\sales\ >> %LogDir%\maintenance.txt c:\noteswrk\ncompact -B D:\notesdat\ifx\sales\ >> %LogDir%\maintenance.txt c:\noteswrk\nupdall -R D:\notesdat\ifx\sales\ >> %LogDir%\maintenance.txt REM Start Domino Server as Service NET START %NotesServiceName% sc query %NotesServiceName% >>%LogDir%\maintenance.txt mD;) -------Original Message------- From: _R.a.d.e.k_ Date: 28. 5. 2007 18:21:54 To: servis-internet (zavinac) nawebu.cz Subject: Re:restart sluzby Zdravim, melo by to jit pomoci prikazu v cmd(, nebo bat v planovaci) net start, net stop. net start /? net stop /? Mrkni na to. _R.a.d.e.k_ > ------------ Původní zpráva ------------ > Od: Zdenek Sofr <Administrator (zavinac) Plastkov.cz> > Předmět: restart sluzby > Datum: 28.5.2007 15:01:02 > ---------------------------------------- > Zdravim > Jak muzu pomoci planovace uloh (nebo jinak planovane) restartovat Sluzbu? > W2K3 server SP1 > > Diky, Zdenek > > > > -----------------------------------------------------( reklama )----- > Skoleni SEO pro webdesignery (3.450 Kc bez DPH, Praha, 25. 5. 2007, 10:00) > Naucte se optimalizovat webove stranky pro vyhledavace na celodennim > skoleni SEO vedenem Martinem Koptou. > http://www.dobryweb.cz/skoleni-seo/?s-ser > --------------------------------------------------------------------- > -- > -- Konference: SERVIS ------ Pravidla: http://pravidla.kab.cz/ -- > -- Archiv, instrukce pro odhlaseni: http://internet.nawebu.cz/ -- > -- Konference Internet Info, s.r.o. ----- http://www.iinfo.cz/ -- > > > > -----------------------------------------------------( reklama )----- Skoleni SEO pro webdesignery (3.450 Kc bez DPH, Praha, 25. 5. 2007, 10:00) Naucte se optimalizovat webove stranky pro vyhledavace na celodennim skoleni SEO vedenem Martinem Koptou. http://www.dobryweb.cz/skoleni-seo/?s-ser --------------------------------------------------------------------- -- -- Konference: SERVIS ------ Pravidla: http://pravidla.kab.cz/ -- -- Archiv, instrukce pro odhlaseni: http://internet.nawebu.cz/ -- -- Konference Internet Info, s.r.o. ----- http://www.iinfo.cz/ --Received on 28. 05. 2007, 23:11 CEST
This archive was generated by hypermail 2.2.0 : 28. 05. 2007, 23:11 CEST