I recently had a problem on a CentOS-6 machine where my dhcp server did not start at boot because it was serving a virtual network interface which did not yet exist.
The best solution to this problem would be for the dhcp server to start up and wait for the network interface to come up. Many other network tools do this successfully so I don't know why dhcpd should be different. That problem is however too big for me to fix on my server so I need a more simple approach.
To solve this, I would like to adjust my dhcp server to start after the virtual network interface service. CentOS-6 uses the (old) RedHat style init scripts (with some LSB configuration too). RedHat like to proclaim that they use upstarts now but all the upstarts do is make a call to the /etc/rc.d/rc script, just like init used to do.
So, the problem is still based around the System V style scripts which have magic comments which define when to start & stop the scripts.
This is the relevant parts of the header for the dhcp server (/etc/rc.d/init.d/dhcpd):
### BEGIN INIT INFO
# Provides: dhcpd
# Default-Start:
# Default-Stop:
# Should-Start: portreserve
# Required-Start: $network
# Required-Stop:
# Short-Description: Start and stop the DHCP server
# Description: dhcpd provides the Dynamic Host Configuration Protocol (DHCP)
# server.
### END INIT INFO
#
# The fields below are left around for legacy tools (will remove later).
#
# chkconfig: - 65 35
Despite the comments about being legacy, when installed using chkconfig, the priorities used are indeed Start 65, Kill 35. We can confirm this with a simple ls
ls /etc/rc.d/rc?.d/*dhcpd
The virtual network is also controlled by an init script with a more modest header (/etc/rc.d/init.d/vand):
# chkconfig: 2345 95 05
# description: Virtual Area Network Deamon
Not surprisingly, this will Start at 95 and Kill at 05.
The first idea I had was to modify the dhcpd init scrip directly. Unfortunately this script is not marked as config file (in the rpm) so when a new version comes out, my changes will be lost. I need something better than that.
It is not immediately obvious but chkconfig does have the ability to alter the priorities. This is called override (but not to be confused with the command line parameter --override).
I was unable to find and documentation on the override but I did work out that his minimal config file was all that was needed:
/etc/chkconfig.d/dhcp:
### BEGIN INIT INFO
# Required-Start: vand
### END INIT INFO
When chkconfig reads the headers from the dhpcd init script, it will also read this file (because it has the same basename) and override the values from the init script.
All that is needed is to apply the settings with:
chkconfig dhcpd on
Some information about LSB init scripts can be found here http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
The final job is to make puppet aware of my changes. Perhaps in my next post.
This message is fascinating. Ariana
ReplyDeleteWhich is better but COC Mod APK or Gbwhatsapp? Can you please tell me how to download them as well?
DeleteThe information you shared is very helpful to us. fleeing the complex
ReplyDeleteVisit neighborhood reston dental center specialist Dr. Ali Miami, VA for family and corrective dentistry. Offering dental inserts, porcelain facade, tooth cleanings, and more.
ReplyDeleteHow to enable or disable service on boot with chkconfig
ReplyDeletehotstar app
Thanks for sharing nice post clash royale private
ReplyDeleteThe source https://gbwhatsapp.net/gio-whatsapp-apk/ is offering excellent whatsapp features, safe, anti ban and privacy protected features for android and iphone users.
ReplyDeletelebron 18
ReplyDeletegolden goose sneakers
hermes handbags
yeezy boost 350
kyrie irving shoes
golden goose
golden goose outlet
moncler jackets
golden goose sneakers
kyrie irving shoes
Obrigado por compartilhar isso, muito interessante. Eu recomendo que você visite este site para encontrar jogos de cassino gratis.
ReplyDeleteI have also encountered such a case and fortunately the WAGBPro team has supported me
ReplyDeleteThanks a lot for sharing about these chkconfig priorities. I am so much happy to read. Kinemaster Diamond
ReplyDeleteNice article. Thanks for the information .
ReplyDeleteEnjoyed reading the article above , really explains everything in detail, the article is very interesting and effective. Thank you and good luck in the upcoming articles Netboom apk mod
ReplyDeleteI am very impressed with your post, thanks for sharing. Would love to see more stuff like this in future. Also download DLS 2022 Mod Apk.
ReplyDeleteThis is excellent information like we have in different sites Aero Whatsapp APK for android and iphone.
ReplyDeleteModified versions of whatsapp are also available such as GB Whatsapp, YO Whatsapp, etc. They provide some many extra features for regular whatsapp user.
ReplyDeleteI’ve compiled a top-rated list of some of the most reliable jigsaws after hours of research and testing almost 50 tools at once. Adding to that, I’ve also considered the positive customer feedback and expert opinions to make things as lenient as possible.
ReplyDeleteIt's very interesting to observe how audio-based social media become more and more popular, maybe one day they will even replace text social media! Thank you for sharing interesting information vipbox
ReplyDeleteNo need to worry. I am going to show you some great paintball masks that will definitely protect your face while still provide good visibility and ventilation, and they won’t break the bank.
ReplyDeleteVery interesting post you have crafted hear. I am blessed to have come across this resolutions post. Thanks.
ReplyDeleteigoal คาสิโนมือถือ
Found your post interesting to read. I cant wait to see your post soon. Good Luck for the upcoming update.This article is really very interesting and effective. Regards Whatsapp Aero Apk
ReplyDeletevery interesting information to share, thank you for sharing useful information, download free fonts with a huge font store for you to choose, press hindi font free download right away
ReplyDeleteWhat affects my use of FM Whatsapp Download New Version.
ReplyDeleteتحميل لايكي 2022 هو تطبيق وسائط اجتماعية يسمح للأشخاص بمشاركة اهتماماتهم مع الآخرين. يحتوي على أربع ميزات رئيسية: 1) القدرة على رؤية ما يهتم به المستخدمون الآخرون ، 2) مربع نص لكتابة موضوع اهتمامك ، 3) خيار لمتابعة المستخدمين الآخرين الذين يشاركونك اهتماماتك ، و 4) القدرة لإعداد ملفات التعريف الشخصية. يمكن تحميل تطبيق لايكي على كل من أجهزة للاندرويد و الأيفون.
ReplyDeleteThe mod apk for the famous game Candy Crush Soda Saga is a popular choice for Android users. The mod contains unlimited lives and increased gold bar count to make the game more intense.
ReplyDeleteOne day, Sensei accidentally confronted the Shogun soldiers who were trying to kidnap the Prince. He fought with them and won. The shogun was very angry. He immediately recruited ninja and trained them to create an overthrow.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHow to use InstaSave to download Instagram photos and videos? · First of all, visit your Instagram app on your device or open it on browser.
ReplyDeleteAs I watched this article, I kept talking about it constantly. I have a clear sense of this. Thank you for sharing. 토토사이트
ReplyDeleteI am interested in this area if you are a great site but know some community forums. I think it should be a good opportunity to get feedback from others who are experienced. 파워볼분석
ReplyDeleteThis is good news for everyone. i think you will like and fm whatsapp download to use to communicate with people
ReplyDelete“We do pregame dedications before every home game,” Ricedorff said. “We honor moms, dads, teachers, and we always have done one for first responders. Now, it’s at a whole new level. It’s a good event for the recognition the first responders deserve.”
ReplyDeleteInstasave online is Instagram photos, videos and albums downloader. You can download and save your favourite Instagram videos and photosInsta DP Downloader
ReplyDeleteI find your website to be highly informative and useful, with a great collection of resources. Thank you for sharing this nice post, which includes plenty of valuable information. I thoroughly enjoyed reading it.Fm Whatsapp
ReplyDeleteThank You for sharing such a nice post. make sure to checkout Sword Game its absolute fun to play
ReplyDeleteThere is an extraordinary benefit to involving MEAN stack for engineers. Since MEAN stack observes the rules of full stack web advancement, designers approach both front and back-end improvement abilities for your site. The four advancements associated with MEAN stack are MongoDB, Express.js, AngularJS, and Node.js. The upside of these four advances is that they all utilization the JavaScript programming language. This consistency makes advancement more straightforward and the normal web engineer compensation is lower than the general web designer pay of 4 separate engineers (really look at the pay rates examination underneath)>> Mobilunity
ReplyDeletehttp://www.dailymagazine.news/new-zealand-222-3-at-stumps-on-1st-day-1st-test-vs-pakistan-nid-1392957.html
ReplyDelete
ReplyDeleteDownload the TopFollow APK, but be aware that getting APK files from unauthorized sources might put your device
and personal data at risk for security breaches. Additionally, it can be against social media networks' terms of
service to use third-party programs to get followers. top follow
The "chkconfig priorities" troubleshooting on CentOS-6 reflects a common challenge with DHCP servers and virtual interfaces. This informative insight emphasizes the importance of configuring services to adapt to dynamic network environments. FM Whatsapp Download
ReplyDeleteExperience WhatsApp like never before with MBWhatsKing. Download whatsapp an and stay updated with the newest features and security enhancements effortlessly.
ReplyDeleteEl artículo es genial, lo apoyo. Por cierto, también quiero presentarles el sitio apk mod de la comunidad, que ofrece descargas gratuitas y seguras para teléfonos Android.
ReplyDelete
ReplyDeleteEye LASIK in Austin offers a transformative solution for vision correction. This advanced procedure utilizes laser technology to reshape the cornea, correcting common vision problems like nearsightedness, farsightedness, and astigmatism. With experienced surgeons and state-of-the-art equipment, Eye LASIK Austin delivers precise and customized treatments tailored to each patient's unique needs.
The procedure is quick, typically lasting only minutes per eye, and recovery is swift, with many patients experiencing improved vision almost immediately. Say goodbye to glasses and contacts and hello to clear, crisp vision with Eye LASIK Austin, where cutting-edge technology meets exceptional care for optimal visual outcomes.
Thanks for this new information. water heater repair denver
ReplyDelete