{"id":120,"date":"2015-08-14T10:14:13","date_gmt":"2015-08-14T03:14:13","guid":{"rendered":"http:\/\/www.oopsbox.com\/?p=120"},"modified":"2015-08-15T17:57:39","modified_gmt":"2015-08-15T10:57:39","slug":"speed-up-ubuntu-15-04vivid-vervet-shutdown-process","status":"publish","type":"post","link":"https:\/\/www.oopsbox.com\/?p=120","title":{"rendered":"Speed Up Ubuntu 15.04(Vivid Vervet) Shutdown Process"},"content":{"rendered":"<p>\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e01\u0e32\u0e23 Shutdown \u0e02\u0e2d\u0e07 Ubuntu 15.04 (Vivid Vervet) \u0e19\u0e35\u0e48\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e08\u0e1a\u0e19\u0e30 \u0e2b\u0e07\u0e38\u0e14\u0e2b\u0e07\u0e34\u0e14\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e22\u0e34\u0e48\u0e07\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32\u0e23\u0e35\u0e1a \u0e46 \u0e41\u0e25\u0e49\u0e27\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e41\u0e1a\u0e1a\u0e43\u0e08\u0e40\u0e22\u0e47\u0e19 \u0e46 \u0e22\u0e34\u0e49\u0e21\u0e2a\u0e27\u0e22 \u0e46 \u0e19\u0e35\u0e48\u00a0 ?<\/p>\n<p>\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e22\u0e31\u0e07\u0e2b\u0e32\u0e27\u0e34\u0e18\u0e35\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e2d\u0e22\u0e32\u0e01\u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e43\u0e0a\u0e49 Upstart \u0e07\u0e31\u0e49\u0e19\u0e01\u0e47\u0e21\u0e32\u0e14\u0e39\u0e04\u0e23\u0e48\u0e32\u0e27 \u0e46 \u0e01\u0e31\u0e19\u0e27\u0e48\u0e32\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32 Shutdown \u0e19\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e31\u0e19\u0e41\u0e19\u0e48 \u0e44\u0e1b\u0e0b\u0e37\u0e49\u0e2d\u0e0b\u0e35\u0e2d\u0e34\u0e4a\u0e27 \u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e2d\u0e30\u0e44\u0e23\u0e02\u0e19\u0e32\u0e14\u0e19\u0e31\u0e49\u0e19<\/p>\n<p>\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c \/etc\/default\/grub<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sudo nano \/etc\/default\/grub<\/pre>\n<p><a href=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/OP-EditGrub.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-122\" src=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/OP-EditGrub.png\" alt=\"OP-EditGrub\" width=\"657\" height=\"465\" srcset=\"https:\/\/www.oopsbox.com\/wp-content\/uploads\/OP-EditGrub.png 657w, https:\/\/www.oopsbox.com\/wp-content\/uploads\/OP-EditGrub-300x212.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/a><br \/>\n\u0e41\u0e01\u0e49\u0e44\u0e02\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14 GRUB_CMDLINE_LINUX_DEFAULT \u0e25\u0e1a quiet splash \u0e41\u0e25\u0e49\u0e27\u0e01\u0e47 update-grub \u0e0b\u0e30<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sudo update-grub<\/pre>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e14\u0e39\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e1e\u0e1a\u0e27\u0e48\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e23\u0e2d Stop Service \u0e1a\u0e32\u0e07\u0e15\u0e31\u0e27 \u0e1a\u0e32\u0e07 Service \u0e19\u0e35\u0e48\u0e23\u0e2d\u0e1b\u0e32\u0e44\u0e1b 5 \u0e19\u0e32\u0e17\u0e35\u00a0 (MySQL) \u0e2d\u0e37\u0e21\u0e21 \u0e23\u0e39\u0e49\u0e2a\u0e36\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e23\u0e2d\u0e19\u0e32\u0e19\u0e44\u0e1b\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e04\u0e07\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e25\u0e48\u0e30\u0e01\u0e31\u0e19 \u0e07\u0e31\u0e49\u0e19\u0e01\u0e47 Stop \u0e21\u0e31\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e21\u0e31\u0e19\u0e08\u0e30\u0e42\u0e14\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e31\u0e14\u0e22\u0e31\u0e14\u0e40\u0e02\u0e49\u0e32\u0e04\u0e34\u0e27\u0e23\u0e2d\u0e42\u0e14\u0e19 Stop<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">declare -a services=(\"mysql\" \"nginx\")\r\nbool=false\r\n\r\nconfirm () {\r\n    # call with a prompt string or use a default\r\n    read -r -p \"${1:-Are you sure? [y\/N]} \" response\r\n    case $response in\r\n        [yY][eE][sS]|[yY]) \r\n            true\r\n            ;;\r\n        *)\r\n            false\r\n            ;;\r\n    esac\r\n}\r\n\r\nfor service in \"${services[@]}\"\r\ndo\r\n    ps auxw | grep $service | grep -v grep &gt; \/dev\/null\r\n    if [ $? != 0 ]\r\n    then\r\n        sudo systemctl start $service.service &gt; \/dev\/null;\t\r\n    else\r\n        bool=true\r\n        sudo systemctl stop $service.service &gt; \/dev\/null;\t\r\n    fi\r\ndone\r\n\r\nif [ \"$bool\" = \"true\" ]; then\r\n\tconfirm \"Shut down, Are you sure? [y\/N]\" &amp;&amp; shutdown -h now\r\nfi\r\n\r\n<\/pre>\n<p>\u0e1b\u0e25.\u0e40\u0e1c\u0e2d\u0e34\u0e0d\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e33\u0e2b\u0e19\u0e14 Service \u0e1a\u0e32\u0e07\u0e15\u0e31\u0e27\u0e44\u0e27\u0e49\u0e27\u0e48\u0e32\u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e44\u0e27\u0e49 \u0e23\u0e27\u0e21 Start \u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e44\u0e27\u0e49\u0e14\u0e49\u0e27\u0e22\u0e2b\u0e25\u0e48\u0e30\u0e01\u0e31\u0e19 ?<\/p>\n<div id=\"s-share-buttons\" class=\"\"><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"fb-share-button\" data-href=\"https:\/\/www.oopsbox.com\/?p=120\" data-type=\"button_count\"><\/div><\/div><div class=\"s-single-share\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"g-plusone\" data-size=\"medium\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/\/www.pinterest.com\/pin\/create\/button\/\" data-pin-do=\"buttonBookmark\"  data-pin-color=\"red\"><img decoding=\"async\" src=\"\/\/assets.pinterest.com\/images\/pidgets\/pinit_fg_en_rect_red_20.png\" \/><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<script type=\"text\/javascript\" async defer src=\"\/\/assets.pinterest.com\/js\/pinit.js\"><\/script>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"mailto:?Subject=Speed%20Up%20Ubuntu%2015.04(Vivid%20Vervet)%20Shutdown%20Process&Body=Here%20is%20the%20link%20to%20the%20article:%20https:\/\/www.oopsbox.com\/?p=120\" title=\"Email\" class=\"s3-email\"><img decoding=\"async\" src=\"https:\/\/www.oopsbox.com\/wp-content\/plugins\/simple-social-share\/includes\/..\/images\/share-email.png\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e01\u0e32\u0e23 Shutdown \u0e02\u0e2d\u0e07 Ubuntu 15.04 (Vivid Vervet) \u0e19\u0e35\u0e48\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e08\u0e1a\u0e19\u0e30 \u0e2b\u0e07\u0e38\u0e14\u0e2b\u0e07\u0e34\u0e14\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e22\u0e34\u0e48\u0e07\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32\u0e23\u0e35\u0e1a \u0e46 \u0e41\u0e25\u0e49\u0e27\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e41\u0e1a\u0e1a\u0e43\u0e08\u0e40\u0e22\u0e47\u0e19 \u0e46 \u0e22\u0e34\u0e49\u0e21\u0e2a\u0e27\u0e22 \u0e46 \u0e19\u0e35\u0e48  ?<\/p>\n<p>\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e22\u0e31\u0e07\u0e2b\u0e32\u0e27\u0e34\u0e18\u0e35\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e2d\u0e22\u0e32\u0e01\u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e43\u0e0a\u0e49 Upstart \u0e07\u0e31\u0e49\u0e19\u0e01\u0e47\u0e21\u0e32\u0e14\u0e39\u0e04\u0e23\u0e48\u0e32\u0e27 \u0e46 \u0e01\u0e31\u0e19\u0e27\u0e48\u0e32\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32 Shutdown \u0e19\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e31\u0e19\u0e41\u0e19\u0e48 \u0e44\u0e1b\u0e0b\u0e37\u0e49\u0e2d\u0e0b\u0e35\u0e2d\u0e34\u0e4a\u0e27 \u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e2d\u0e30\u0e44\u0e23\u0e02\u0e19\u0e32\u0e14\u0e19\u0e31\u0e49\u0e19<\/p>\n","protected":false},"author":1,"featured_media":98,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[13],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-systemd","entry"],"views":2904,"_links":{"self":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":4,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions\/125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/media\/98"}],"wp:attachment":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}