Day-7 : systemctl & systemd

Embrace the Whimsical World of systemctl and systemd - Docker and Jenkins in the Mix!

Day-7 : systemctl & systemd

INTRODUCTION

Welcome, Tech enthusiasts🌟

To a delightful rendezvous with systemctl and systemd - the dynamic duo of Linux service management! Picture a whimsical world where software magically starts, stops, and dances to your commands. Sounds fun, right? So, grab your wizard hat, and let's explore the captivating magic of these tools!🚀

Part 1: systemd & systemctl - The Dynamic Duo

Ever wondered how Linux manages its services with finesse? Enter,systemd the grand conductor orchestrating the symphony of processes on your system. Meet, systemctl its trusty sidekick, acting as the messenger between you and the magical realm of systemd. Together, they enable you to start, stop, and manage services with a flick of your terminal wand.

Part 2: Installing Docker - The Virtual Ship

Ahoy, mateys! Get ready to set sail with Docker, the nifty tool that packs applications into containers! It's like virtual ships, each carrying its cargo without bothering the others. To install Docker, sprinkle these magic words into your terminal:

For Ubuntu/Debian magic:

sudo apt update
sudo apt install docker.io

For Fedora enchantment:

sudo dnf install docker

Part 3: Jenkins - The Enchanting Automation Butler

Meet Jenkins, the sorcerer's apprentice of automation! It magically builds, tests, and deploys your projects, leaving you with more time for mischief. Unleash Jenkins with these bewitching commands:

For Ubuntu/Debian incantation:

sudo apt update
sudo apt install jenkins

For Fedora charm:

sudo dnf install jenkins

Part 4: Casting Spells with systemctl

Now that you've summoned Docker and Jenkins, it's time to control them with systemctl's wizardry. Marvel at how simple it is to start, stop, or restart them:

To start Docker and Jenkins:

sudo systemctl start docker
sudo systemctl start jenkins

To stop Docker and Jenkins:

sudo systemctl stop docker
sudo systemctl stop jenkins

To restart Jenkins (after configuration changes, perhaps?):

sudo systemctl restart jenkins

Part 5: Enchanting Bonus - Automatic Startup

Why cast spells repeatedly when you can set Docker and Jenkins to start on boot? Let's sprinkle some magic dust to make it happen:

For Docker's automatic startup:

sudo systemctl enable docker

For Jenkins' captivating auto-start:

sudo systemctl enable jenkins

And voilà! Docker and Jenkins will now greet you on every system boot.

CONCLUSION

Congratulations, brave adventurers, for completing Day-7 of our 90 Days of DevOps Challenge! You've embarked on a magical journey through the whimsical world of systemctl and systemd, and mastered the art of installing Docker and Jenkins using the power of package managers.

Until then, stay curious, stay magical, and stay tuned. The spellbinding journey continues! 🌟✨