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 have a KVM single core VPS optimized for hosting static content running only Nginx 1.13.8 with SSD and 1GB RAM with a hosting provider on ...
-
If I connect to a server with RDP and share my clipboard with the server, are there any security risks of my clipboard being availble to oth...
-
I have Sony Vaio laptop. I want to remap Left Control and Escape keys to Backslash () and Back-tick (`) keys respectively. I have already tr...
-
My question stems from the recent incident with CloudFlare on July 2nd deploying bad software on their systems and causing downtime to most ...
-
I'm trying to delete some registry keys (startup items) via the commandline and while I can delete from HKCU \SOFTWARE\Microsoft\Windows...
-
Issue: I'm having trouble with the Taskbar and Windows Explorer. I right-click on Notepad (that I've pinned to my "taskbar...
-
I have a home server, with the following: My goal is to add drives to the server as needed to increase available space. When my case reache...
No comments:
Post a Comment