LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2009, 07:16 PM   #16
il-uvatar
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 15

Hi yiye62:-

You have lost me now. I am a newbie and don't know what a signal handler is. Can you elaborate?

x terminat or 3:- Here is the result of the command:

[root@localhost root]# rpm -qa | grep myth
[root@localhost root]#

(i.e.NOTHING !)

As stated above this is a commercially produced (now unsupported) MythTV box running Mandrake 10.0.
{In case you are wondering, yes it works. The reason for this query is to disable mythbackend so I can modify the sql table for the EPG. Such are the joys of MythTV !! ;-) }
 
Old 04-28-2009, 02:05 AM   #17
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Quote:
Originally Posted by x_terminat_or_3 View Post
You didn't tell us what distro you are using
Post #5 stated Mandrake 10.0

what happens if you change the grep statement:
Code:
rpm -qa|grep -i myth
Additionally, try:
Code:
cd /etc/init.d
ls -l |grep -i myth

Last edited by Disillusionist; 04-28-2009 at 02:11 AM.
 
Old 04-28-2009, 02:28 AM   #18
il-uvatar
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 15
OK. Results are:

[root@localhost root]# rpm -qa|grep -i myth
[root@localhost root]#
[root@localhost root]# cd /etc/init.d
[root@localhost init.d]# ls -l |grep -i myth
[root@localhost init.d]#

err............ nothing!
 
Old 04-28-2009, 02:35 AM   #19
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
OK. Different tack.

From the GUI:

select System;
Expand Administration;
Expand Server Settings;
Select Services

Do you see anything related to myth in the list of services running?
 
Old 05-02-2009, 02:24 AM   #20
il-uvatar
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Hi Disillusionist ! Sorry about the delay in getting back.

I used the "MandrakeLinux Control Center 10". It is a GUI and takes me to the list of services via a slightly different route (i.e. System > Services).

There appear to be no services visible that have "Myth" in their name !

Very strange indeeed.....

P.S. I got to the GUI with the following:

Ctrl-Alt F1
logged in as root
init 5
logged in again as root
the system fires up XDM
 
Old 05-02-2009, 03:41 AM   #21
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I don't suppose there are any entries in the /etc/inittab file relating to myth?

Code:
cat /etc/inittab|grep -i myth
If not, please could you post the complete file, in case we are missing something.

Last edited by Disillusionist; 05-02-2009 at 03:43 AM.
 
Old 05-02-2009, 03:49 AM   #22
il-uvatar
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Exclamation Some progress...

As a matter of fact there are ...........

[root@localhost root]# cat /etc/inittab|grep -i myth
mbx:4:respawn:/usr/local/bin/mythbackinit
mfx:4:respawn:/usr/local/bin/mythfrontinit
[root@localhost root]#

So, what does this mean ?
 
Old 05-02-2009, 03:51 AM   #23
il-uvatar
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 15
BTW Disillusionist, I thank you for your perserverence.

If you could (maybe) write a list of things I could try ? (since I am in Australia and the time zone difference may work for or against us) ;-)
 
Old 05-02-2009, 04:42 AM   #24
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
OK, now we are cooking

As root:
Code:
cp -p /etc/inittab /etc/inittab.bkup
Then edit the /etc/inittab file and place a # symbol infront of the two myth entries:

Quote:
# mbx:4:respawn:/usr/local/bin/mythbackinit
# mfx:4:respawn:/usr/local/bin/mythfrontinit
Then reboot.

Once you have performed the task that you needed Myth to be shut down for, you can change the files back:
Code:
mv /etc/inittab /etc/inittab.nomyth
mv /etc/inittab.bkup /etc/inittab
Then reboot.
 
Old 05-02-2009, 05:35 AM   #25
zahidhasan
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by il-uvatar View Post
Can someone help me or tell me what I am doing wrong ?

I'm trying to update a database using mysql. I realise that I have to kill a process "mythbackend" in order to do so.

I have tried listing the running processes using "ps -A". I get the following:
[root@localhost root]# ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:00 khelper
5 ? 00:00:00 kacpid
44 ? 00:00:00 kblockd/0
54 ? 00:00:00 vesafb
57 ? 00:00:00 pdflush
58 ? 00:00:00 pdflush
60 ? 00:00:00 aio/0
59 ? 00:00:00 kswapd0
163 ? 00:00:00 kseriod
172 ? 00:00:00 kjournald
387 ? 00:00:00 devfsd
518 ? 00:00:00 khubd
921 ? 00:00:00 kjournald
1810 ? 00:00:00 ifplugd
1895 ? 00:00:00 mysqld_safe
1979 ? 00:00:00 netplugd
1999 ? 00:00:00 mysqld
2029 ? 00:00:00 portmap
2053 ? 00:00:00 syslogd
2061 ? 00:00:00 klogd
2545 ? 00:00:00 xfs
2619 ? 00:00:00 acpid
2661 ? 00:00:00 sshd
2704 ? 00:00:00 xinetd
2995 ? 00:00:00 crond
3021 ? 00:00:00 smbd
3031 ? 00:00:00 nmbd
3181 ? 00:00:00 httpd-perl
3188 ? 00:00:00 advxsplitlogfil
3189 ? 00:00:00 httpd-perl
3190 ? 00:00:00 httpd-perl
3191 ? 00:00:00 httpd-perl
3192 ? 00:00:00 httpd-perl
3326 ? 00:00:00 lircd
3329 ? 00:00:00 lircd2
3359 tty1 00:00:00 mingetty
3366 tty2 00:00:00 mingetty
3367 tty3 00:00:00 mingetty
3368 tty4 00:00:00 mingetty
3369 tty5 00:00:00 mingetty
3370 tty6 00:00:00 mingetty
3530 ? 00:00:00 mythfrontinit
4563 ? 00:00:00 sshd
4565 ? 00:00:00 sftp-server
4579 ? 00:00:00 sshd
4581 pts42 00:00:00 bash
4909 ? 00:00:00 mythbackinit
5117 ? 00:00:00 mythbackend
5118 ? 00:00:00 startx
5129 ? 00:00:00 xinit
5130 ? 00:00:01 X
5131 ? 00:00:01 mythfrontend
5153 ? 00:00:00 kdvb-fe-0:0
5160 ? 00:00:00 sh
5163 ? 00:00:00 irexec
5164 ? 00:00:00 unclutter
5166 ? 00:00:00 sWM
5187 pts42 00:00:00 ps

I then issue the command "kill 5117".

When I list the processes again, it is still there (but with a different PID) !

Then I tried killing both mythbackinit and mythbackend (using their PIDs) and the same thing happened. They keep restaring like the Hydra !!

Can anyone please help?
You can check a particular process by using this command "ps -ef | grep mythbackend". After that it shows a process ID. then kill -9 that ID to kill that process.
 
Old 05-02-2009, 07:59 AM   #26
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Quote:
Originally Posted by zahidhasan View Post
You can check a particular process by using this command "ps -ef | grep mythbackend". After that it shows a process ID. then kill -9 that ID to kill that process.
With the process being respawned by init, that wouldn't resolve the issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill a process akhtar.bhat Linux - Software 1 12-28-2008 08:26 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Cannot kill process - please help! thomas.nichols Linux - General 16 09-05-2001 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration