{"id":602,"date":"2007-08-03T02:02:00","date_gmt":"2007-08-03T07:02:00","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc"},"modified":"2007-08-03T02:02:04","modified_gmt":"2007-08-03T07:02:04","slug":"embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc","status":"publish","type":"post","link":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc","title":{"rendered":"Embracing chkconfig to auto-start services (like mysql) on RHEL\/CentOS\/Fedora\/etc."},"content":{"rendered":"<p>I was at <a href=\"http:\/\/modm.wordpress.com\/\">MODM<\/a>4 yesterday, and as always, great fun was had. One common recurring theme though, was getting MySQL to start automatically upon a Linux server&#8217;s restart, something which I would have thought just came pretty naturally to sys-admin types. Upon further probing, these systems were all generally CentOS or RHEL based, and it wasn&#8217;t just MySQL that gave them problems &#8211; it was anything they&#8217;d installed out of the stock packages (<a href=\"http:\/\/www.lighttpd.net\/\">lighttpd<\/a> was a popular Apache replacement, that suffered from the same fate).<\/p>\n<p>While I didn&#8217;t recollect the exact part of the <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/\">manual<\/a> it was stored in, I was informing everyone to make use of the <tt>chkconfig<\/tt> tool. Its really as simple as making sure there exists a <tt>\/etc\/init.d\/mysql<\/tt> (it must be executable &#8211; chmod +x), doing a <tt>chkconfig --add mysql<\/tt> and making sure that it starts up at the correct runlevels (typically 3, 4 and 5). A simple <tt>chkconfig --level 345 mysql on<\/tt> and you&#8217;re ready to rock. Repeat, rinse for lighttpd or anything else, that has a startup script, really.<\/p>\n<p>And read the manual &#8211; section 2.4.16.2.2. <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/unix-post-installation.html#automatic-start\">Starting and Stopping MySQL Automatically<\/a>. <a href=\"http:\/\/www.redhat.com\/docs\/manuals\/enterprise\/RHEL-5-manual\/Deployment_Guide-en-US\/s1-services-chkconfig.html\">chkconfig<\/a>&#8216;s manual page is a little sparse, so consider some of the Red Hat Knowledgebase entries: <a href=\"http:\/\/kbase.redhat.com\/faq\/FAQ_43_5943.shtm\">How do I use chkconfig to enable a script for a service that accepts start, stop, and status options?<\/a> and <a href=\"http:\/\/kbase.redhat.com\/faq\/FAQ_79_4024.shtm\">Why does an installed service, like ypbind, not show up in the chkconfig list, but I am able to start it manually?<\/a> Kudos to Red Hat&#8217;s open KB as well&#8230;<\/p>\n<p>Technorati Tags: <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/chkconfig\" rel=\"tag\">chkconfig<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/rhel\" rel=\"tag\">rhel<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/centos\" rel=\"tag\">centos<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/fedora\" rel=\"tag\">fedora<\/a>, <a class=\"performancingtags\" href=\"http:\/\/technorati.com\/tag\/mysql\" rel=\"tag\">mysql<\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Embracing%20chkconfig%20to%20auto-start%20services%20%28like%20mysql%29%20on%20RHEL%2FCentOS%2FFedora%2Fetc.&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F08%2F03%2Fembracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"d52e0f7dbb\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-602\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-602\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-602\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I was at MODM4 yesterday, and as always, great fun was had. One common recurring theme though, was getting MySQL to start automatically upon a Linux server&#8217;s restart, something which I would have thought just came pretty naturally to sys-admin types. Upon further probing, these systems were all generally CentOS or RHEL based, and it [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Embracing%20chkconfig%20to%20auto-start%20services%20%28like%20mysql%29%20on%20RHEL%2FCentOS%2FFedora%2Fetc.&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F08%2F03%2Fembracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"d52e0f7dbb\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-602\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-602\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-602\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/08\/03\/embracing-chkconfig-to-auto-start-services-like-mysql-on-rhelcentosfedoraetc?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[23],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-9I","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1593,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2009\/10\/12\/mysql-in-rhel5centos5-gets-an-update","url_meta":{"origin":602,"position":0},"title":"MySQL in RHEL5\/CentOS5 gets an update","date":"12\/10\/2009","format":false,"excerpt":"It's worth noting that Red Hat Enterprise Linux (RHEL) 5 has had an update to MySQL in the last month. This naturally means that CentOS 5 also had a similar update. It's now bumped up to MySQL 5.0.77 (goodbye 5.0.45!; which is what RHEL5 shipped with). This is a moderate\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2745,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2013\/06\/12\/mariadb-replaces-mysql-in-rhel7","url_meta":{"origin":602,"position":1},"title":"MariaDB replaces MySQL in RHEL7","date":"12\/6\/2013","format":false,"excerpt":"Subject says its all, this is of course, very good news coming out of the Red Hat Summit. Looking forward to Red Hat Enterprise Linux 7. And of course, CentOS 7 and the other builds that follow. Thank you Red Hat! MariaDB replaces MySQL in RHEL 7. Glad to see\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":699,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/01\/16\/centos-centosplus-and-mysql-versions-shipping-there","url_meta":{"origin":602,"position":2},"title":"CentOS, CentOSPlus, and MySQL versions shipping there","date":"16\/1\/2008","format":false,"excerpt":"Peter posted that CentOS comes with a build of MySQL Enterprise. It should really be clarified that CentOS itself, comes with MySQL Community, as does Red Hat Enterprise Linux. On RHEL5\/CentOS5, you'll see: mysql-5.0.22-2.2.el5_1.1 mysql-server-5.0.22-2.2.el5_1.1 The above are the default packages that CentOS provides. However, what Peter really is referring\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":558,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/05\/23\/some-random-thoughts-notes-etc-from-the-mysql-conference-expo-2007","url_meta":{"origin":602,"position":3},"title":"Some random thoughts, notes, etc. from the MySQL Conference &#038; Expo 2007","date":"23\/5\/2007","format":false,"excerpt":"Here are some random thoughts, notes, observations, etc.Jay Pipes - he made the conference possibleFriendster uses Bugzilla internally. Yes they're still alive, even though MySpace and so forth are around and kicking. Had to Google them (I wanted to find their old talk about their storage engine), and found MySQL\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":844,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/06\/23\/spacewalk-and-what-we-can-learn-about-naming","url_meta":{"origin":602,"position":4},"title":"Spacewalk, and what we can learn about naming","date":"23\/6\/2008","format":false,"excerpt":"Red Hat releases Spacewalk. It is described as: \"the upstream community project from which the Red Hat Network Satellite product is derived\". Congratulations to all whom have worked on it, especially my friends who tired endlessly over it in the past. Red Hat, is sticking true to its promise, of\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2760,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2013\/07\/11\/some-mariadb-related-news-from-the-red-hat-front","url_meta":{"origin":602,"position":5},"title":"Some MariaDB related news from the Red Hat front","date":"11\/7\/2013","format":false,"excerpt":"This is a followup to my early post a month ago titled: MariaDB replaces MySQL in RHEL 7\u00a0(lots of stuff in the comments). It's clear that MariaDB's role is in Software Collections, which is new in RHEL. Steven J. Vaughan-Nichols writes\u00a0Red Hat will switch from Oracle MySQL to MariaDB, reports.\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/602"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":0,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}