{"id":2931,"date":"2014-05-04T04:30:18","date_gmt":"2014-05-04T09:30:18","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=2931"},"modified":"2014-05-04T04:30:19","modified_gmt":"2014-05-04T09:30:19","slug":"starting-with-systemd","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2014\/05\/04\/starting-with-systemd","title":{"rendered":"Starting with systemd"},"content":{"rendered":"<p>I currently maintain a host of machines in the RPM world from CentOS 5, CentOS 6, and now Fedora 20 (in preparation for CentOS 7). Being part of an <a href=\"https:\/\/mariadb.org\/\">upstream project<\/a> that ships on many platforms, it is in my interest to make sure that all things \u201cjust work\u201d on the myriad of platforms out there that we support.<\/p>\n<p>In CentOS 6.5, changing a hostname is a process of editing \/<tt>etc\/sysconfig\/network<\/tt>, making sure the <tt>\/etc\/hosts<\/tt> file is sensible and fixing it with the <tt>hostname<\/tt> command. Rackspace has a good <a href=\"http:\/\/www.rackspace.com\/knowledge_center\/article\/centos-hostname-change\">support article<\/a> on this.<\/p>\n<p>This is the world before <a href=\"http:\/\/en.wikipedia.org\/wiki\/Systemd\">systemd<\/a>. Now in Fedora 20, this muscle memory goes away in favour of using <a href=\"http:\/\/docs.fedoraproject.org\/en-US\/Fedora\/18\/html\/System_Administrators_Guide\/s1_Using_Hostnamectl.html\">hostnamectl<\/a> (docs from the excellent <a href=\"http:\/\/docs.fedoraproject.org\/en-US\/Fedora\/18\/html\/System_Administrators_Guide\/index.html\">System Administrator\u2019s Guide<\/a>). Now all I have to do is:\u00a0<tt>sudo hostnamectl set-hostname &lt;newhostname&gt;<\/tt>.<\/p>\n<p>I see a whole host of <a href=\"https:\/\/mariadb.atlassian.net\/issues\/?jql=text%20~%20%22systemd%22\">feature requests<\/a> with regards to MariaDB &amp; systemd as well as <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=65809\">a<\/a> <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=61948\">couple<\/a> for MySQL. I\u2019ll be spending some time on this in the near future.<\/p>\n<p>(and in other news, <tt>shutdown<\/tt>\u00a0doesn\u2019t understand the <tt>-f<\/tt> switch &#8211; invalid option code &#8211; this was to skip fsck on reboot &#8211; still valid in CentOS 5, accepted input in CentOS 6, but unlikely for CentOS 7.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I currently maintain a host of machines in the RPM world from CentOS 5, CentOS 6, and now Fedora 20 (in preparation for CentOS 7). Being part of an upstream project that ships on many platforms, it is in my interest to make sure that all things \u201cjust work\u201d on the myriad of platforms out [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1671],"tags":[2,286,1672],"class_list":["post-2931","post","type-post","status-publish","format-standard","hentry","category-distribution","tag-fedora","tag-sysadmin","tag-systemd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-Lh","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2931"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2931\/revisions"}],"predecessor-version":[{"id":2932,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2931\/revisions\/2932"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}