jbdmom <> wrote:
> Thank you so much.
>
> I agree we should have a UPS, but those decisions are out of my
> hands. I can only work with what I've got.
Sure. This is when you send an email to all your bosses and say "We need to
get a UPS. I've priced them out and this is the one we need. It will do X,
Y, Z. Without this our servers will crash in the event of a power failure
and can sustain expensive and time-consuming damage, and we also run the
risk of damaging hardware due to power surges."
Then you save your message somewhere safe. Remember, stupid should hurt.
>
> Thanks again.
No problem.
>
>
> "Lanwench [MVP - Exchange]" wrote:
>
>> jbdmom <> wrote:
>>> Hello,
>>>
>>> I'm afraid I'm not well versed in Windows Server, but I think what I
>>> want to do is very simple.
>>>
>>> I need to have the startup of Server 2003 delete a file that may or
>>> may not exist.
>>>
>>> And here is why - when the server is not shutdown correctly (e.g.
>>> power outage), the .pid file for our rsync service does not get
>>> deleted. So when the server starts up again, the rsync service does
>>> not start because the .pid file exists.
>>>
>>> So I'd like to have the file deleted on startup, just in case it is
>>> there.
>>>
>>> I've done a lot of research, but am getting very confused about the
>>> easiest way to go about this.
>>>
>>> Thank you for your time.
>>
>> A simple batch file at startup applied via group or local policy
>> would do this ....
>>
>>
>> if exist "c:\blah\folder name\blah.file" del "c:\blah\folder
>> name\blah.file" /q
>>
>> I'm sure there are a zillion other ways but this would work.
>>
>> That said, Iif your server is not being shut down properly due to a
>> power failure, you need to get a good managed UPS that can initiate
>> a graceful shutdown for this and all servers (if you have many
>> servers you need a NIC in the UPS and it has to be a unit of
>> sufficient size to handle multiple servers).
>>
>>
>> .
|