0

When a WebSphere Liberty server is started on Linux, is its pid stored anywhere on the filesystem, in a .pid file or similar? I'm developing an automated script that under some scenarios, when the server won't cleanly stop, needs to force-kill it.

1
  • is this under Linux? Apr 7, 2014 at 15:59

1 Answer 1

2

Hi on Linux server there is .pid directory which will have PID

For example :

/opt/IBM/WebSphere/Liberty/usr/servers # cd .pid

/opt/IBM/WebSphere/Liberty/usr/servers/.pid # ls -lp

-rw-r--r-- 1 root root 6 Apr  7 11:05 defaultServer.pid

-rw-r--r-- 1 root root 6 Apr  7 11:10 test1.pid

/opt/IBM/WebSphere/Liberty/usr/servers/.pid # cat defaultServer.pid

14088

/opt/IBM/WebSphere/Liberty/usr/servers/.pid #

NOTE : On windows there is no PID file/directory created.

VS, opinions are my own and not those of my employer

1
  • Just verified that, this seems to work - thank you! Apr 9, 2014 at 18:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .