I am trying to launch a java process as a server and then might periodically need to restart/kill it at certain times. Since I use a shell script to launch java jvm(to build classpath), I thought of logging the shell script process id using $$ and then run java as
"exec java" so that I can use the logged process id for killing the process and launching the new jvm.
Is that the best way to do it? Any feedback?
Tuesday, June 25, 2019
bash - Shell script Process PID logging and maintenance using exec
Subscribe to:
Post Comments (Atom)
linux - How to SSH to ec2 instance in VPC private subnet via NAT server
I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...
-
I did some reaches, and I know "Desktop.ini" and "Thumbs.db" files are hidden files for view customizations, and I know ...
-
I am trying to understand why the OOM killer has reaped a process on a KVM virtual machine running with 1 gigabyte of memory. While I do alr...
-
I have a HP DL380p Gen8 server with ESXi 5.5 running on it and HP Smart Array P420i. I've installed 4 new hard disks on it and want to p...
-
I have (only) 512MB to spare. The only thing running on my VPS is PHP/MySQL and on top of it Wordpress. No mail server or any other applicat...
-
On RabbitMQ 3.5.7 Ubuntu 16.04. I want to implement RabbitMq Management plugin only on localhost, the idea is to use a tunnel to reach the R...
-
We rolled out this new Windows 8.1 machine on the domain recently, other desktops are still using XP. One of the software we install is the ...
-
What software would you recommend to monitor a network? We have a main server which acts as a DNS among other services. An...
No comments:
Post a Comment