Veritas-bu

[Veritas-bu] Stop service before job

2003-01-14 20:44:52
Subject: [Veritas-bu] Stop service before job
From: Quarantine AT GSCCCA DOT ORG (Quarantine)
Date: Tue, 14 Jan 2003 20:44:52 -0500
I *was* talking about the Windows service side of things.  Net.exe is a
built-in Windows NT utility for as long as I can remember.  You can issue
net start <service_name> and net stop <service_name> from the command line
on any NT 4, 2000 or XP machine.

Matt

-----Original Message-----
From: Darren Dunham [mailto:ddunham AT taos DOT com] 
Sent: Tuesday, January 14, 2003 7:38 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Stop service before job


> 
> There may be a better way, but you could try using net start/stop 
> commands in bpstart_notify.bat and bpend_notify.bat.  These scripts 
> are looked for when backups start and stop on Windows clients.  See 
> the system administrator's guide for more information about creating 
> and using both files.

Certainly that's the NBU place for stuff to go.  The original poster may
have been wondering about the windows service side of things.

If it's not something simple you could do in a .BAT script, I'd recommend
installing perl on the machine and writing a perl script.  You could call it
from the NBU batch scripts. 

With the help of the Win32::Service module, you can do normal control
(start, stop, pause, resume) of Services from a script.



-- 
Darren Dunham                                           ddunham AT taos DOT com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

<Prev in Thread] Current Thread [Next in Thread>