Restart nodes

From MDWiki
Revision as of 02:05, 23 September 2008 by Ikass (talk | contribs) (New page: == Restarting only nodes without jobs == If there is a need to restart specific nodes it can be done by: <code> <pre> sudo cexec 'if ! ( ps lax | grep mom | grep -v grep | grep spool ); t...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Restarting only nodes without jobs

If there is a need to restart specific nodes it can be done by:

sudo cexec 'if ! ( ps lax | grep mom | grep -v grep | grep spool ); then shutdown -r now; fi'