{"id":220,"date":"2016-01-17T22:42:42","date_gmt":"2016-01-17T20:42:42","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=220"},"modified":"2016-01-17T22:42:42","modified_gmt":"2016-01-17T20:42:42","slug":"application-server-service-unix","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/","title":{"rendered":"Application Server as a Service in Unix"},"content":{"rendered":"<p>Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides the capability to start the server with a UNIX shell.<\/p>\n<p>In this post, we will create <a href=\"http:\/\/www.oracle.com\/technetwork\/middleware\/weblogic\/overview\/index-085209.html\" target=\"_blank\">Weblogic<\/a> \u00a0server as a service making it to start at machine reboot in few steps as follows:<\/p>\n<p><strong>Step 1:<\/strong> Create a file to configure the init script with name <strong>weblogic<\/strong> inside directory <strong>\/etc\/default\/<\/strong> with content, as follows:<\/p>\n<pre class=\" brush:bash\"># \/etc\/default\/weblogic script used to configure the init script\r\n\r\n# Weblogic Server installation home directory\r\nWLSHOME=\"\/opt\/weblogic\/wlserver_10.3\"\r\n\r\n# Weblogic Server sample server\r\nSAMPLESERVER=\"\/samples\/domains\/wl_server\"\r\n\r\n# Username password for stopping\r\nUSER=\"weblogic\"\r\nPASSWORD=\"welcome1\"<\/pre>\n<p><strong>Step 2:<\/strong> Create a file with name <strong>weblogic<\/strong> inside directory <strong>\/etc\/init.d\/<\/strong> with content, as follows:<\/p>\n<pre class=\" brush:bash\">#!\/bin\/sh\r\n\r\n. \/etc\/default\/weblogic\r\n\r\nstart() {\r\n  ${WLSHOME}${SAMPLESERVER}\/bin\/startWebLogic.sh &amp;\r\n}\r\n\r\nstop() {\r\n  ${WLSHOME}${SAMPLESERVER}\/bin\/stopWebLogic.sh -username ${USER} -password ${PASSWORD} &amp;\r\n}\r\n\r\ncase \"$1\" in\r\nstart)\r\nstart\r\n;;\r\nstop)\r\nstop\r\n;;\r\nrestart)\r\nstop\r\nstart\r\n;;\r\n*)\r\necho \"Usage: $0 {start|stop|restart}\"\r\nexit 1\r\nesac<\/pre>\n<p><strong>Step 3:<\/strong> Make <strong>weblogic<\/strong> file inside directory <strong>\/etc\/init.d\/<\/strong> as executable<\/p>\n<pre class=\" brush:bash\">$ cd \/etc\/init.d\/\r\n$ chmod +x weblogic<\/pre>\n<p><strong>Step 4:<\/strong> Add the service to the automatic startup system.<\/p>\n<pre class=\" brush:bash\">$ sudo update-rc.d weblogic defaults<\/pre>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/aggarwalarpit.wordpress.com\/2015\/11\/25\/application-server-as-a-service-in-unix\/\">Application Server as a Service in Unix<\/a> from our <a href=\"http:\/\/www.systemcodegeeks.com\/join-us\/scg\/\">SCG partner<\/a> Arpit Aggarwal at the <a href=\"https:\/\/aggarwalarpit.wordpress.com\/\">Arpit Aggarwal<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides the capability to start the server with a UNIX shell. In this post, we will create Weblogic \u00a0server as a service making it to start at machine reboot in few steps &hellip;<\/p>\n","protected":false},"author":5,"featured_media":201,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-unix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Application Server as a Service in Unix - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Application Server as a Service in Unix - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/arpit.aggarwal.1989\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-17T20:42:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Arpit Aggarwal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@aggarwalarpit89\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arpit Aggarwal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\"},\"author\":{\"name\":\"Arpit Aggarwal\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/7763c04f3a6eda99fd37275460380b35\"},\"headline\":\"Application Server as a Service in Unix\",\"datePublished\":\"2016-01-17T20:42:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\"},\"wordCount\":139,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg\",\"articleSection\":[\"Unix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\",\"name\":\"Application Server as a Service in Unix - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg\",\"datePublished\":\"2016-01-17T20:42:42+00:00\",\"description\":\"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unix\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/unix\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Application Server as a Service in Unix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/7763c04f3a6eda99fd37275460380b35\",\"name\":\"Arpit Aggarwal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g\",\"caption\":\"Arpit Aggarwal\"},\"description\":\"Arpit is a Consultant at Xebia in India. He has been designing and building J2EE applications since more than 4 years. He is fond of Object Oriented and lover of Functional programming and his specialties are Java, J2EE, Scala, SOA, Cloud and Big Data Technologies.\",\"sameAs\":[\"https:\/\/aggarwalarpit.wordpress.com\/\",\"https:\/\/www.facebook.com\/arpit.aggarwal.1989\",\"https:\/\/in.linkedin.com\/in\/arpitaggarwalxebia\",\"https:\/\/x.com\/aggarwalarpit89\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/arpit-aggarwal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Application Server as a Service in Unix - System Code Geeks - 2026","description":"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/","og_locale":"en_US","og_type":"article","og_title":"Application Server as a Service in Unix - System Code Geeks - 2026","og_description":"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides","og_url":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_author":"https:\/\/www.facebook.com\/arpit.aggarwal.1989","article_published_time":"2016-01-17T20:42:42+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg","type":"image\/jpeg"}],"author":"Arpit Aggarwal","twitter_card":"summary_large_image","twitter_creator":"@aggarwalarpit89","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Arpit Aggarwal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/"},"author":{"name":"Arpit Aggarwal","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/7763c04f3a6eda99fd37275460380b35"},"headline":"Application Server as a Service in Unix","datePublished":"2016-01-17T20:42:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/"},"wordCount":139,"commentCount":1,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg","articleSection":["Unix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/","url":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/","name":"Application Server as a Service in Unix - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg","datePublished":"2016-01-17T20:42:42+00:00","description":"Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/unix-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/unix\/application-server-service-unix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Unix","item":"https:\/\/www.systemcodegeeks.com\/category\/unix\/"},{"@type":"ListItem","position":3,"name":"Application Server as a Service in Unix"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/7763c04f3a6eda99fd37275460380b35","name":"Arpit Aggarwal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g","caption":"Arpit Aggarwal"},"description":"Arpit is a Consultant at Xebia in India. He has been designing and building J2EE applications since more than 4 years. He is fond of Object Oriented and lover of Functional programming and his specialties are Java, J2EE, Scala, SOA, Cloud and Big Data Technologies.","sameAs":["https:\/\/aggarwalarpit.wordpress.com\/","https:\/\/www.facebook.com\/arpit.aggarwal.1989","https:\/\/in.linkedin.com\/in\/arpitaggarwalxebia","https:\/\/x.com\/aggarwalarpit89"],"url":"https:\/\/www.systemcodegeeks.com\/author\/arpit-aggarwal\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}