Re: failed systemctl services?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6 May 2015 at 11:52, Suvayu Ali wrote:

Date sent:      	Wed, 6 May 2015 11:52:44 +0200
From:           	Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx>
To:             	users@xxxxxxxxxxxxxxxxxxxxxxx
Subject:        	Re: failed systemctl services?
Send reply to:  	Community support for Fedora users 
<users@xxxxxxxxxxxxxxxxxxxxxxx>
	
<mailto:users-request@xxxxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe>
	
<mailto:users-request@xxxxxxxxxxxxxxxxxxxxxxx?subject=subscribe>

> On Mon, May 04, 2015 at 04:09:32PM -0400, Matthew Miller wrote:
> > On Mon, May 04, 2015 at 12:48:46PM -0700, stan wrote:
> > > Those were interesting reads.  It seems the infrastructure is in place
> > > to deal with the problem of service failure, but operational inertia is
> > > slowing adoption.  In other words, just a normal human system.  :-)
> > > The one thing I didn't see addressed was the comment requesting some
> > > notification if a service became a chronic (ab)user of the restart
> > > feature, so remedial action could be taken or requested.
> > 
> > Well, it's logged.... but, yeah. In general, we don't have a standard,
> > integrated monitoring/alerting service for Fedora, except for desktop
> > notifications, which aren't ideal for many cases. (Like, basically
> > anything but a single-user desktop.) Working on fixing this would be an
> > interesting project — maybe under Fedora Server...
> 
> Well, system mail daemon did that job pretty well.
> 

For a test, I made a little script fixsystemctl in /etc/cron.hourly

chksystemctl=`systemctl --state=failed | grep failed | cut -f 2 -d\  `
if [ -n "$chksystemctl" ] ; then
	date >>/var/log/chksystemctl
        echo $chksystemctl >>/var/log/chksystemctl
	systemctl restart $chksystemctl
fi

Been running it on 20 machines for about 24 hours, and generally each 
machine has a couple of items in the file, but a few still had the file empty.





> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> -- 
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes@xxxxxxxxxxxxxxxx                            
  mailto:msetzerii@xxxxxxxxx
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS
ROSETTA     29019923.147768   |   SETI        51036191.422589
ABC         16613838.513356   |   EINSTEIN    59904806.509700

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux