LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2015, 03:48 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
How to "nuke" mythtv logserver daemon?


I continue to have problems where mythbackend stops, or at least becomes unresponsive, and the only way to recover mythtv is to nuke mythlogserver.

I added the following to /etc/init.d/mythtv-backend but...

Code:
  nuke)
        echo -n "Nuking myth "
        ps -ef |grep myth |grep -v grep | grep -v init\.d |awk '{print $2}' |xargs kill -9
        ;;
I get the following complaint.

Code:
bob@musem:~$ sudo /etc/init.d/mythtv-backend restart
[....] Restarting mythtv-backend (via systemctl): mythtv-backend.serviceWarning: Unit file of mythtv-backend.service changed on disk, 'systemctl daemon-reload' recommended.
I don't get this complaint when I manually "kill -9" the mythlogserver after using "/etc/init.d/mythtv-backend stop". I've tried using the "...stop" command before running nuke, but I still get the complaint about systemctl. So, is this a sequencing problem or am I going about this the wrong way?

The problem is on debian jessie, but it's the same on all the debian releases I've used over the years. So, I'd like to have a way of doing this through init.d.
 
Old 11-18-2015, 05:16 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
When you modify startup scripts, you should tell the corresponding services that they need to reread them. That's what "reload" means. "systemctl daemon-reload" just tells all services to reread their config.

So, after editing, just do as the warning message suggests; perhaps that settles it.It's a bit strange though that you get the message at restart, which includes reload afaik.

Now I don't know if your approach of modifying init.d is valid when your system uses systemd. You might want to look for a tutorial how to write startup code under systemd.
 
Old 11-18-2015, 05:27 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by berndbausch View Post
When you modify startup scripts, you should tell the corresponding services that they need to reread them. That's what "reload" means. "systemctl daemon-reload" just tells all services to reread their config.
Thanks! I was wondering about that, but failed to test for it. My bad.

Quote:
Now I don't know if your approach of modifying init.d is valid when your system uses systemd. You might want to look for a tutorial how to write startup code under systemd.
This isn't a command that I would normally do. It's either add a nuke command or have to manually look up the process id and kill that. You can imagine my preference. =)

Thanks again.
 
Old 11-18-2015, 05:30 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Quakeboy02 View Post
This isn't a command that I would normally do. It's either add a nuke command or have to manually look up the process id and kill that. You can imagine my preference. =)
Well the question is how to properly addmthe nuke command in a systemd context. But anyway, good luck!
 
Old 11-18-2015, 05:35 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Yeah, I know that. But I've got enough to fill my plate without wondering why this init.d script thinks that the mythlogserver is incapable of failing. So, since nuke works... =)
 
  


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
[SOLVED] Not sure what "console-kit-daemon --no-daemon" means mark_alfred Linux - General 2 12-18-2011 04:59 PM
Removing the Enlightenment Sound Daemon (aka "esd" aka "esound") jgombos Debian 4 03-30-2010 02:33 PM
MythTV -- Scan gets stuck on channel 22, "no lock"; what to do? mitchell7man Linux - Server 4 03-23-2010 02:23 AM
"repeat = 3" doesn't work with lirc and mythtv MikeOfAustin Linux - Software 0 05-23-2007 11:17 AM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 AM.

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