Re: Stopping java based applications

2009-03-31 Thread Jack Woehr
Erik N Johnson wrote: This is generally considered highly insecure. The usual caveat about running userland apps as root. In fact, the generally accepted practice amongst most Linux admins is: ALWAYS issue administrative commands using sudo. This and Everything Erik says is True. I posted in

Re: Stopping java based applications

2009-03-31 Thread Erik N Johnson
This is generally considered highly insecure. The usual caveat about running userland apps as root. In fact, the generally accepted practice amongst most Linux admins is: ALWAYS issue administrative commands using sudo. NEVER log in remotely as root. ONLY log in as root w/ physical access, and

Re: Stopping java based applications

2009-03-31 Thread Erik N Johnson
gt; From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of > Jack Woehr > Sent: Tuesday, March 31, 2009 10:28 AM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: Stopping java based applications > > CHAPLIN, JAMES (CTR) wrote: >> We want anyone in the group level to

Re: Stopping java based applications

2009-03-31 Thread Jack Woehr
Mark Post wrote: Oh, minor terminological pedanticism: when the set is on the group we call it setgid to differentiate from setuid. Hardly minor, since the behavior it enables is completely different from setuid. True, but I was trying not to be /breathless/ about it, just hinting to the p

Re: Stopping java based applications

2009-03-31 Thread Mark Post
>>> On 3/31/2009 at 11:48 AM, Jack Woehr wrote: -snip- > Oh, minor terminological pedanticism: when the set is on the group we call > it setgid to differentiate from setuid. Hardly minor, since the behavior it enables is completely different from setuid. Mark Post

Re: Stopping java based applications

2009-03-31 Thread Jack Woehr
CHAPLIN, JAMES (CTR) wrote: -r--rwsr--+ 1 user group 500 Jan 21 16:23 stopServer.sh The setuid is set on group level. It has to be setuid to root because only root can send signal to other user's processes. So it has to be owned by root and should be something like -r-sr-x--- Oh, minor termi

Re: Stopping java based applications

2009-03-31 Thread Kirk Wolf
Re: how to cause a Java app to shutdown IF you have the authority to send it a signal: Java JVMs on *nix generally will respond to SIGINT (2) or SIGTERM(15) by exiting "normally". An application an register a "shutdownhook" and run some code to clean up if necessary. Here's a link: http://www.ib

Re: Stopping java based applications

2009-03-31 Thread CHAPLIN, JAMES (CTR)
at you are suggesting? James Chaplin Systems Programmer, MVS, zVM & zLinux Base Technologies, Inc -Original Message- From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Jack Woehr Sent: Tuesday, March 31, 2009 10:28 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: Stopp

Re: Stopping java based applications

2009-03-31 Thread Edmund R. MacKenty
On Tuesday 31 March 2009 09:43, CHAPLIN, JAMES (CTR) wrote: >Our programmers have been creating java based applications that they >start and stop using simple scripts. The start script call java to start >the program; however the stop script issues a simple kill command >against the PID. > >Our pro

Re: Stopping java based applications

2009-03-31 Thread David Boyes
>> Our programmers have been creating java based applications that they >> start and stop using simple scripts. The start script call java to start >> the program; however the stop script issues a simple kill command >> against the PID. Ugh. Wrong, wrong, wrong, unless they have set up their app

Re: Stopping java based applications

2009-03-31 Thread Jack Woehr
CHAPLIN, JAMES (CTR) wrote: We want anyone in the group level to be able to also issue the kill command (in the script). Is there a way to allow users in a group to kill each other's started processes. You can have a script or program * with the setuid bit set * with the write permissio

Re: Stopping java based applications

2009-03-31 Thread Scott Rohling
IMO - the java app should provide a way to tell it to exit gracefully - and the stop script would exercise that. Scott On Tue, Mar 31, 2009 at 7:43 AM, CHAPLIN, JAMES (CTR) < james.chap...@associates.dhs.gov> wrote: > Our programmers have been creating java based applications that they > start a