Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-03-2013, 01:31 AM
|
#1
|
Member
Registered: Aug 2009
Posts: 539
Rep:
|
kill: bad signal ?
I started a process and the pid is 1234. When I try to kill this process with kill 1234, I got error
Code:
/usr/share/jbossas/bin/standalone.sh: kill: bad signal
The standalone.sh is the script starting the process.
|
|
|
07-03-2013, 02:46 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.
Continue in the other/original thread: https://www.linuxquestions.org/quest...al-4175468296/
Reported for closure.
|
|
|
07-03-2013, 03:05 AM
|
#3
|
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
|
It seems there is to less posts in Solaris, sothat I post my question by LINUX.
|
|
|
07-03-2013, 03:10 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
All cross-posters think they have a legitimate reason to break the LQ rules.
Just open _one_ thread about a subject, be patient and do not break the rules.
|
|
|
07-03-2013, 04:25 PM
|
#5
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Quote:
Originally Posted by thomas2004ch
It seems there is to less posts in Solaris, sothat I post my question by LINUX.
|
That doesn't make sense. Either the issue is related on Solaris and this is the right forum or the issue happen on Linux too and Linux software would be fine.
Back to the topic, how are you trying to kill the process (just "kill 1234" or "kill -15 1234" or something else ) ?
Last edited by jlliagre; 07-03-2013 at 04:27 PM.
|
|
|
07-04-2013, 03:35 AM
|
#6
|
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
|
I got the same error no mather with "kill 1234" or "kill -15 1234".
In RedHat-Linux I don't get such error.
|
|
|
07-04-2013, 03:41 PM
|
#7
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
What say:
Code:
type kill
which kill
whence -pv kill
truss -t kill -f kill 1234
?
|
|
|
07-09-2013, 01:10 AM
|
#8
|
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
|
Code:
-bash-3.2$ type kill
kill is a shell builtin
Code:
-bash-3.2$ which kill
/usr/bin/kill
Code:
-bash-3.2$ whence -pv kill
-bash: whence: command not found
Code:
-bash-3.2$ truss -t kill -f kill 27875
27886: kill(27875, SIGTERM) = 0
-bash-3.2$ /usr/share/jbossas/bin/standalone.sh: kill: bad signal
*** JBossAS process (27875) received signal ***
|
|
|
07-09-2013, 02:35 AM
|
#9
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
The signal is properly sent. Is the process staying alive after the kill or are you just complaining about the error message ?
What says
Code:
egrep "(trap|kill)" /usr/share/jbossas/bin/standalone.sh
?
|
|
|
07-09-2013, 04:31 AM
|
#10
|
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
|
The prozess is killed, and I complaining about the error message.
Code:
root@S001AP61-TEST (vws-tst1) # egrep "(trap|kill)" /usr/share/jbossas/bin/standalone.sh
echo " JBoss Bootstrap Environment"
trap "kill -HUP $JBOSS_PID" HUP
trap "kill -TERM $JBOSS_PID" INT
trap "kill -QUIT $JBOSS_PID" QUIT
trap "kill -PIPE $JBOSS_PID" PIPE
trap "kill -TERM $JBOSS_PID" TERM
SIGNAL_NAME=`kill -l $SIGNAL`
root@S001AP61-TEST (vws-tst1) #
|
|
|
07-09-2013, 05:06 PM
|
#11
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
The error likely comes from that line:
Code:
SIGNAL_NAME=`kill -l $SIGNAL`
I guess the standalone.sh script starts with " #!/bin/sh" and wrongly assumes a POSIX shell will be run.
Change that line to one of:
or
or
|
|
|
07-10-2013, 02:25 AM
|
#12
|
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
|
The standalone.sh does starts with "#!/bin/sh". But after I changed this to "#/bin/bash" it is getting worse since I got the message
*** JBossAS process (5240) received signal ***
*** JBossAS process (5240) received signal ***
*** JBossAS process (5240) received signal ***
...
...
endless and I have to reboot the machine.
|
|
|
07-10-2013, 04:56 AM
|
#13
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Did you try /bin/ksh ?
|
|
|
All times are GMT -5. The time now is 08:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|