{"id":265,"date":"2013-06-25T16:18:25","date_gmt":"2013-06-25T20:18:25","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=265"},"modified":"2013-06-25T16:18:25","modified_gmt":"2013-06-25T20:18:25","slug":"add-your-own-script-to-default-run-levels-in-ubuntu","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2013\/06\/25\/add-your-own-script-to-default-run-levels-in-ubuntu\/","title":{"rendered":"Add Your own Script to Default Run Levels in Ubuntu"},"content":{"rendered":"<p>This uses the old Sys V init.d scripts. Not upstart. I may write a post on upstart at a later date. So, you write a cool script that you want to run at startup. Place it in \/etc\/rc.d\/init.d and make it executable. Next run the following command:<\/p>\n<pre>\r\nsudo update-rc.d my_cool_script defaults\r\n<\/pre>\n<p>This will set the script to run on all the default run levels.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This uses the old Sys V init.d scripts. Not upstart. I may write a post on upstart at a later date. So, you write a cool script that you want to run at startup. Place it in \/etc\/rc.d\/init.d and make it executable. Next run the following command: sudo update-rc.d my_cool_script defaults This will set the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[39,16,60],"tags":[152,21,33],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-bash","category-linux","category-ubuntu-linux","tag-init","tag-linux-2","tag-ubuntu-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-4h","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":1,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}