OK, I put some sleep commands in the script. Not elegant, but I suppose it will 
do.

 

 

- Steve

 

Steven R. Ray, Ph.D.

Distinguished Research Fellow

Carnegie Mellon University

NASA Research Park

Building 23 (MS 23-11)

P.O. Box 1
Moffett Field, CA 94305-0001

Email:    [email protected]

Phone: (650) 587-3780

Cell:      (202) 316-6481

Skype: steverayconsulting

cid:[email protected]

 

From: [email protected] [mailto:[email protected]] 
On Behalf Of Pat Doyle
Sent: Wednesday, June 27, 2018 7:54 AM
To: TopBraid Suite Users
Subject: Re: [topbraid-users] How to reliably shut down TBL?

 

Steve,

 

It sounds like you may sometimes be starting the copy of the backup before 
tomcat has fully shut down. 

 

You should be able to identify the java process that tomcat is running under 
with the command 'ps aux | grep tomcat' or 'ps aux | grep java' and check to 
see that it has disappeared before starting the backup process. 

 

That should prevent the .lock file from being copied over to the backup 
directory, as it should be properly removed after the full shutdown has 
completed.

 

Hope it helps,

Pat

 

On Tue, Jun 26, 2018 at 8:21 PM, Steve Ray (CMU) <[email protected]> wrote:

Hi,

            Periodically, we want to deploy updated projects to TBL, but 
occasionally we seem to hit it in the middle of servicing a web service call, 
and end up corrupting our .tdb vocabulary. Our procedure is as follows:

 

1.    sudo initctl stop tomcat

2.    Copy our .tdb file and associated directory to a backup location

3.    sudo initctl start tomcat

4.    Upload our newly edited project

5.    sudo initctl stop tomcat

6.    Restore our backed up .tdb file and associated directory

7.    sudo initctl start tomcat

8.    Wait just a bit, then refresh

 

Again, sometimes there is a .lock file in the .tdb directory, which messes 
everything up, including being able to even access the Administration page via 
the web interface. I have to go in and manually remove the .lock file before 
TBL will start cleanly again.

 

So, my question is, is there a better way to shut down TBL so that it finishes 
up whatever calls it is doing and clears the .lock file?

 

 

- Steve

 

Steven R. Ray, Ph.D.

Distinguished Research Fellow

Carnegie Mellon University

NASA Research Park

Building 23 (MS 23-11)

P.O. Box 1
Moffett Field, CA 94305-0001

Email:    [email protected]

Phone: (650) 587-3780

Cell:      (202) 316-6481

Skype: steverayconsulting

cid:[email protected]

 

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

 

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

 


 
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
 

Virus-free.  
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
 www.avg.com 

 

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to