linux - How do I restart a service at every reboot?
2014-04
CHK
As a result of a bug in mcollective [1], I need to restart the service immediately after each boot. What is the best way to accomplish this?
Answers
fede.evol
Adding a line for restart in /etc/rc.local (/etc/rc.d/rc.local)? It is started at last script after boot. So just add a
/etc/init.d/mcollective restart
in it.
Related Question
linux - How can I dismiss puplet messages with a keyboard shortcut?
Philip Durbin
puplet is forever reminding me when it's time to run "yum update", which is fine, but I'm forced to click the little x to dismiss the dialog. Is there a keyboard shortcut or command that can dismiss it for me? I'm running GNOME 2.16.0 on RHEL5. Here's a screenshot:
Related Answers
Philip Durbin
Adding a timeout means I don't have to dismiss the puplet message:
[root@beamish ~]# diff -u /usr/bin/puplet.orig /usr/bin/puplet
--- /usr/bin/puplet.orig 2010-01-07 00:39:09.000000000 -0500
+++ /usr/bin/puplet 2010-07-01 17:06:17.000000000 -0400
@@ -232,7 +232,7 @@
return len(upds.keys())
def _showNotify(self, notify, urgency = pynotify.URGENCY_NORMAL,
- timeout = 0):
+ timeout = 1000):
if self.notify is not None:
self.notify.close()
notify.attach_to_status_icon(self.trayicon)
[root@beamish ~]#