{"id":1107661,"date":"2021-01-11T07:05:15","date_gmt":"2021-01-11T15:05:15","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1107661"},"modified":"2021-01-11T07:05:15","modified_gmt":"2021-01-11T15:05:15","slug":"monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","title":{"rendered":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd"},"author":10252,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[37501],"tags":[],"industry":[],"product":[36571],"class_list":["post-1107661","blog","type-blog","status-publish","format-standard","hentry","category-administration","product-arcgis-enterprise"],"acf":{"short_description":"To discuss managing ArcGIS Enterprise bootstrapping and managing processes using systemd.","flexible_content":[{"acf_fc_layout":"content","content":"<p>Within the world of Linux, it is a common practice to bootstrap and manage processes. While there are several different methods to do so, systemd remains one of the more popular options. Briefly stated, systemd is an init system that is used to bootstrap user processes. Arguably, its most important component is the \u201csystem and service manager\u201d component.<\/p>\n<p>For Linux distros that support it, systemd can greatly benefit system administrative workflows. ArcGIS Enterprise on Linux makes use of systemd and in this Monthly Linux Tip, we will cover taking the ArcGIS Server unit file and implementing into systemd. Please find the table of contents below:<\/p>\n<ol>\n<li>Locating the unit file<\/li>\n<li>Copying unit file to systemd<\/li>\n<li>Enabling and starting services<\/li>\n<li>Conclusion<\/li>\n<\/ol>\n<p>Please note that in this blog, I am utilizing a RHEL 8.x machine to demonstrate. However, these steps should work so long as your system is configured with systemd.<\/p>\n<p><strong>1. Locating the unit file<\/strong><\/p>\n<p>Firstly, what is a unit file? Unit files describe the configuration on how that particular service will work within systemd. ArcGIS Enterprise on Linux comes built with unit files that will stop and start the service. These are found in the following location: <em>&lt;ArcGIS Installation Directory&gt;\/framework\/etc\/scripts\/*.service<\/em>.<\/p>\n<p>In the case of ArcGIS Server, this could look like the following: <em>\/testpath\/arcgis\/server\/framework\/etc\/scripts\/arcgisserver.service<\/em>.<\/p>\n<p><strong>2. Copying unit file to systemd<\/strong><\/p>\n<p>Now that we have located the unit file, it is time to copy it over to systemd. This can be done as illustrated below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/systemd_one.png\" \/><\/p>\n<p>Simple! To ensure tightened security on that service, we will need to change the permissions from 700 to 600. See below on how to do so:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/systemd_two.png\" \/><\/p>\n<p>Notice how we verified the permissions after we changed the permissions. This is to ensure that our changes went into effect. Please note that by design, the root user has user AND group ownership of the <em>\/etc<\/em> folder. Due to this, you will need to use sudo when copying the service and changing the permissions. Alternatively, if you are the administrator of your machine, just use the root user directly and bypass using the sudo command.<\/p>\n<p><strong>3. Enabling and starting services<\/strong><\/p>\n<p>All that is left is to activate our service! This can be done in a few simple commands, shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/systemd_three.png\" \/><\/p>\n<p>To break the above down, we are first enabling the service we are copying over. This means that we wish to enable this ArcGIS Server whenever we boot this machine. From there, we stop the service and then start it up. Once done, we can check on the status of the service to see if it is loaded or not.<\/p>\n<p>With system and service managers, automating shutdown and startup may come of interest. The steps that we have done here can easily be put in a Bash script to help automate this process. An example is we can have a Bash script named <em>enterprise-services.sh<\/em> that looks like the following:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/create-server-service.png\" \/><\/p>\n<p>Should the environment have Portal for ArcGIS, ArcGIS Data Store, etc, this Bash script can extend to account for those services.<\/p>\n<p><strong>4. Conclusion<\/strong><\/p>\n<p>In this blog, we discussed copying unit files within ArcGIS Server into systemd, enabling and starting the service and how we can help automate this process. Please leave a comment in the comment section if this was of use to you. Also, let me know a topic you would love to see next month. Thank you for reading this Monthly Linux Tip and Happy New Years!<\/p>\n"}],"authors":[{"ID":10252,"user_firstname":"Markus","user_lastname":"Walker","nickname":"MWalker","user_nicename":"mwalker","display_name":"Markus Walker","user_email":"MWalker@esri.com","user_url":"","user_registered":"2019-12-03 14:04:26","user_description":"Markus is a Product Engineer on the ArcGIS Enterprise team, where he specializes with Linux architectures.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/04\/31161cb9-c3aa-493e-8ff2-5b3a3ff46361-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"related_articles":"","card_image":false,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/09\/1071enterprisebanner.png"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd<\/title>\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.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\"},\"author\":{\"name\":\"Markus Walker\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/457f3d786c7c12c3d37d57b3d6f2702f\"},\"headline\":\"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd\",\"datePublished\":\"2021-01-11T15:05:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\"},\"wordCount\":9,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"articleSection\":[\"Administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\",\"name\":\"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2021-01-11T15:05:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/457f3d786c7c12c3d37d57b3d6f2702f\",\"name\":\"Markus Walker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/04\/31161cb9-c3aa-493e-8ff2-5b3a3ff46361-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/04\/31161cb9-c3aa-493e-8ff2-5b3a3ff46361-213x200.jpg\",\"caption\":\"Markus Walker\"},\"description\":\"Markus is a Product Engineer on the ArcGIS Enterprise team, where he specializes with Linux architectures.\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/mwalker\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd","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.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","og_locale":"en_US","og_type":"article","og_title":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd"},"author":{"name":"Markus Walker","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/457f3d786c7c12c3d37d57b3d6f2702f"},"headline":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd","datePublished":"2021-01-11T15:05:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd"},"wordCount":9,"commentCount":0,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"articleSection":["Administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd","name":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2021-01-11T15:05:15+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/administration\/monthly-linux-tip-manage-arcgis-enterprise-processes-with-systemd#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Monthly Linux Tip: Manage ArcGIS Enterprise Processes With systemd"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/457f3d786c7c12c3d37d57b3d6f2702f","name":"Markus Walker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/04\/31161cb9-c3aa-493e-8ff2-5b3a3ff46361-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/04\/31161cb9-c3aa-493e-8ff2-5b3a3ff46361-213x200.jpg","caption":"Markus Walker"},"description":"Markus is a Product Engineer on the ArcGIS Enterprise team, where he specializes with Linux architectures.","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/mwalker"}]}},"text_date":"January 11, 2021","author_name":"Markus Walker","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/mwalker","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/09\/1071enterprisebanner.png","primary_product":"ArcGIS Enterprise","tag_data":[],"category_data":[{"term_id":37501,"name":"Administration","slug":"administration","term_group":0,"term_taxonomy_id":37501,"taxonomy":"category","description":"","parent":0,"count":427,"filter":"raw"}],"product_data":[{"term_id":36571,"name":"ArcGIS Enterprise","slug":"arcgis-enterprise","term_group":0,"term_taxonomy_id":36571,"taxonomy":"product","description":"","parent":0,"count":977,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-enterprise","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1107661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/10252"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=1107661"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1107661\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=1107661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=1107661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=1107661"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=1107661"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=1107661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}