{"id":700,"date":"2009-07-16T07:55:09","date_gmt":"2009-07-15T21:55:09","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=700"},"modified":"2009-07-16T07:55:09","modified_gmt":"2009-07-15T21:55:09","slug":"quibbles-a-better-networker-init-script-would-be-nice","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/07\/16\/quibbles-a-better-networker-init-script-would-be-nice\/","title":{"rendered":"Quibbles \u2013 A better NetWorker init script would be nice&#8230;"},"content":{"rendered":"<p>Coming primarily from a Unix background, I&#8217;ve remained disappointed for 10+ years that NetWorker&#8217;s <em>init<\/em> script has barely changed in that time. Or rather, the only things that have really changed in the script are checks for additional software \u2013 e.g., Legato License Manager.<\/p>\n<p>It&#8217;s frustrating, in a pesky sort of way, that in all this time the engineers at EMC have never bothered to implement a <em>restart<\/em> function within the script.<\/p>\n<p>For just about every Unix platform in NetWorker, the only arguments that \/etc\/init.d\/networker takes are:<\/p>\n<ul>\n<li>stop \u2013 stop the NetWorker services<\/li>\n<li>start \u2013 start the NetWorker services<\/li>\n<\/ul>\n<p>That&#8217;s it. Once, a long time ago, I got frustrated, and hacked on the NetWorker init script to include a <em>restart<\/em> option, one that worked with the following logic:<\/p>\n<ol>\n<li>Issued a stop command.<\/li>\n<li>Waited 30 seconds.<\/li>\n<li>Checked to see if there were any NetWorker daemons still running.<\/li>\n<li>If there <em>were<\/em> NetWorker daemons still running, warn the user and abort.<\/li>\n<li>If there were no NetWorker daemons still running, issue a start command.<\/li>\n<\/ol>\n<p>Over time, I got tired of inserting this hack back into the init scripts after every upgrade or reinstall, and in time even gave up keeping it around. Call it laziness or apathy on my part, but whatever you want to label it, the same applies to first Legato, then EMC engineering for not adding this absolute basic and practically expected functionality after all these years.<\/p>\n<p>Is there an RFE for this? I don&#8217;t know, <em>but logically there should be no need for one<\/em>. As systems have matured, the <em>restart<\/em> option has effectively become a default\/expected setting on most platforms for init scripts. NetWorker has sadly lagged behind and still requires the administrator to manually run the stop and the start, one after the other.<\/p>\n<p>A minor quibble, I know, but nevertheless a quibble.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Coming primarily from a Unix background, I&#8217;ve remained disappointed for 10+ years that NetWorker&#8217;s init script has barely changed in&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,18,20],"tags":[478,827],"class_list":["post-700","post","type-post","status-publish","format-standard","hentry","category-networker","category-quibbles","category-scripting","tag-init","tag-restart"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-bi","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=700"}],"version-history":[{"count":0,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/700\/revisions"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}