{"id":11019,"date":"2013-10-17T11:33:27","date_gmt":"2013-10-17T06:03:27","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=11019"},"modified":"2017-04-24T16:56:24","modified_gmt":"2017-04-24T11:26:24","slug":"aem-startup-on-system-boot-in-linux","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/","title":{"rendered":"AEM startup on System Boot in Linux"},"content":{"rendered":"<p>If you want to make your <a href=\"https:\/\/2thenew.xyz\/wcm\/cq-aem-development-consulting\">CQ\/AEM instance<\/a> start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on <a href=\"http:\/\/dev.day.com\/docs\/en\/cq\/current\/deploying\/installing_cq.html\">installing CQ as a Window service<\/a>.<br \/>\nBut you will hardly find any page on making your CQ\/AEM instance start on system boot in Linux Operating System.<\/p>\n<p>I was trying this in Ubuntu 13.0 64 bit OS, but with some R &amp; D, and some help, i was able to achieve this the hard way.<\/p>\n<p>So here goes the steps to make your CQ start on system boot in Linux:<\/p>\n<ol>\n<li>First you need to create a shell file with some shell script that describes start, stop and status case for CQ. For now lets say you created cq5init.sh file.<br \/>\nAlso lets assume you have installed your CQ instance in \/opt directory. So now your crx-quickstart is located in \/opt\/cq5\/crx-quickstart.<\/li>\n<li>Then you need to move shell file to init.d directory in linux. Use following to move your file:\n<pre><code># Make sure your terminal is pointing to the directory \r\n# where you have saved \r\ncq5init file sudo mv cq5init \/etc\/init.d\/ <\/code><\/pre>\n<\/li>\n<li>Then you need to make your shell file executable with raised priviliges using following command:\n<pre><code>sudo chmod +x \/etc\/init.d\/cq5init <\/code><\/pre>\n<\/li>\n<li>Before i explain next step, following information might be helpful to understand the next command &#8211;&gt;<br \/>\nLinux services can be started, stopped and reloaded with the use of scripts stocked in\u00a0<em>\/etc\/init.d\/<\/em>.<br \/>\nHowever, during start up or when changing runlevel, those scripts are searched in \/etc\/rcX.d\/ where X is the runlevel number.<br \/>\nWhen installing a new service under debian, the default is to enable it. So for instance, if you just installed\u00a0<em>apache2<\/em>\u00a0package, after you installed it, apache service will be started and so will it be upon the next reboots.You could either disable this service on boot up by removing any symbolic links in<strong>\/etc\/rcX.d\/SYYapache2<\/strong>\u00a0or by using\u00a0<strong>update-rc.d<\/strong>.The advantage of using\u00a0<strong>update-rc.d<\/strong>\u00a0is that it will take care of removing\/adding any required links to\u00a0<em>\/etc\/init.d<\/em>\u00a0automatically.So on same lines, next command is to register your service with <strong>update-rc.d:<\/strong><\/p>\n<pre><code>sudo update-rc.d cq5init defaults <\/code><\/pre>\n<\/li>\n<li>Now just reboot your system, and if you have done your steps right, your CQ instance will automatically get up.<\/li>\n<\/ol>\n<p>If I missed any details, that might be helpful to implement this, please post a comment. And if you need help writing the exact shell file for CQ, contact me through comments.<\/p>\n<p>Cheerz.. Enjoy Programming \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":20,"footnotes":""},"categories":[1],"tags":[4847,1207],"class_list":["post-11019","post","type-post","status-publish","format-standard","hentry","category-technology","tag-aem","tag-cq5"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ankur Mittal\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"AEM startup on System Boot in Linux | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"AEM startup on System Boot in Linux | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#article\",\"name\":\"AEM startup on System Boot in Linux | TO THE NEW Blog\",\"headline\":\"AEM startup on System Boot in Linux\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankur-mittal\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-10-17T11:33:27+05:30\",\"dateModified\":\"2017-04-24T16:56:24+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#webpage\"},\"articleSection\":\"Technology, AEM, CQ5\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#listItem\",\"name\":\"AEM startup on System Boot in Linux\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#listItem\",\"position\":3,\"name\":\"AEM startup on System Boot in Linux\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankur-mittal\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankur-mittal\\\/\",\"name\":\"Ankur Mittal\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e0df3d408c7c2ad81fe7fd67c4ea3da7a9bddeb3cf4f8c4224d98a6f5076859?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ankur Mittal\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/\",\"name\":\"AEM startup on System Boot in Linux | TO THE NEW Blog\",\"description\":\"If you want to make your CQ\\\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\\\/AEM instance start\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aem-startup-on-system-boot-in-linux\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankur-mittal\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankur-mittal\\\/#author\"},\"datePublished\":\"2013-10-17T11:33:27+05:30\",\"dateModified\":\"2017-04-24T16:56:24+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"AEM startup on System Boot in Linux | TO THE NEW Blog","description":"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start","canonical_url":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#article","name":"AEM startup on System Boot in Linux | TO THE NEW Blog","headline":"AEM startup on System Boot in Linux","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/ankur-mittal\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2013-10-17T11:33:27+05:30","dateModified":"2017-04-24T16:56:24+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#webpage"},"articleSection":"Technology, AEM, CQ5"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#listItem","name":"AEM startup on System Boot in Linux"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#listItem","position":3,"name":"AEM startup on System Boot in Linux","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/ankur-mittal\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/ankur-mittal\/","name":"Ankur Mittal","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5e0df3d408c7c2ad81fe7fd67c4ea3da7a9bddeb3cf4f8c4224d98a6f5076859?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ankur Mittal"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/","name":"AEM startup on System Boot in Linux | TO THE NEW Blog","description":"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/ankur-mittal\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/ankur-mittal\/#author"},"datePublished":"2013-10-17T11:33:27+05:30","dateModified":"2017-04-24T16:56:24+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"AEM startup on System Boot in Linux | TO THE NEW Blog","og:description":"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start","og:url":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"AEM startup on System Boot in Linux | TO THE NEW Blog","twitter:description":"If you want to make your CQ\/AEM instance start on system boot in Windows Operating System, I am sure you will find a lot of documentation on that. Even Day (now Adobe) has a page on installing CQ as a Window service. But you will hardly find any page on making your CQ\/AEM instance start","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"11019","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 00:30:00","updated":"2024-02-29 08:46:11","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAEM startup on System Boot in Linux\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"AEM startup on System Boot in Linux","link":"https:\/\/2thenew.xyz\/blog\/aem-startup-on-system-boot-in-linux\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/11019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=11019"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/11019\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=11019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=11019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=11019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}