Amahi 7 for Fedora 18 pre-alpha

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: Amahi 7 for Fedora 18 pre-alpha

Postby stern88 » Sat Feb 09, 2013 1:11 pm

We found that DHCP does not provide a PID file, which is a pain, because we can not put it in the watchdog as it and we will have to patch it, sadly.

Code: Select all

Am 04.11.2012 19:26, schrieb Brown: > And there's the creation of the pid file directories for both named and ddclient > that seem to disappear every time I reboot, also seems like a bug somewhere man tmpfiles.d BTW: all these packages should be fixed a long time ago nearly no service needs a pid-file, systemd knows the pid if i have any problem with such services the first is to clone them under /etc/systemd/system and remove any pid-crap so far this fixed every problem in this context
Hop that helps. From:
http://lists.fedoraproject.org/pipermai ... 73502.html

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Amahi 7 for Fedora 18 pre-alpha

Postby cpg » Sat Feb 09, 2013 2:07 pm

That's not the question. The question is that the monit watchdog requires a PID to operate well and monitor that service.

So far, all I read about monit is how to patch things that do not generate a PID file to *generate* one, so that it detects activity, zombies, etc. No mention in their wiki or anywhere else what do do for the cases, which seems like will be more and more common, where there is no PID file.

If you could research that (perhaps ask in their devel list?), that would be great!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: Amahi 7 for Fedora 18 pre-alpha

Postby stern88 » Sun Feb 10, 2013 7:47 am

That's not the question. The question is that the monit watchdog requires a PID to operate well and monitor that service.
For what exactly do you need monit? It is also possible to communicate directly with systemd. There is a example written in php here:
http://www.fedoraforum.de/viewtopic.php?f=16&t=23204

You urgently need PID-Files for Monit, thats correct. Without that files monit wont be able to monitor the services. But you can get the same informations from systemd.

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: Amahi 7 for Fedora 18 pre-alpha

Postby stern88 » Sun Feb 10, 2013 1:45 pm

I would like to learn more about this monit problem by having a look at the source-code. Where can I find the related code?

I just found amahi/lib/platform.rb where you have defined the paths/filenames. However I dont think a re-engineering of amahi to use systemd is that easy as it's supposed to be. Monit is still in the Fedora18 repo. The PID-Files are just files containing the PID of a process, correct?
http://stackoverflow.com/questions/8296 ... it-contain

Isn't it possible to generate a PID-file with a bash-script && cron easily oneself?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Amahi 7 for Fedora 18 pre-alpha

Postby cpg » Sun Feb 10, 2013 2:04 pm

Systemd may well be the future, but we have seen the future crumble before our eyes before. So we it's better to wait and use what we have.

The code is at https://github.com/amahi, in particular https://github.com/amahi/platform for the latest platform.

The simplest thing (i think) would be to remove the --no-pid option with which systemd launches dhcpd with. The code is in /usr/lib/systemd/system/dhcpd.something

We could patch that in the installer, though it may reset itself in upstream updates. dhcpd has been a problem child for a long time. Some times we would not be able to stop it, some times (much earlier) it would crash ...

The other options would be

- support systemd within Amahi, even if it's not clear if it's the future for real just yet
- see when monit supports systemd or something other than pid files

Ultimately, we need to cover this case. This is at the very core of why Amahi exists. These little problems make a system unusable out of the box and Amahi takes that and makes it way more usable for a lot more people :-)

Thanks for your help in researching this issue.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 23 guests