In this assignment, you are required to write a bash script, call it mycontainer.sh to do the following tasks: 1) Create an LXD container based on ubuntu. 2) Install the latest version of mysql on the container created in Step 1. Then, start the database and autostart it during future boots. 3) Print the process ID of the running database, then give this process the highest possible priority. 4 Inside the container, create a new systemd service to: Re-execute Step 3 to adjust the priority. Send a notification message to your AUIS email address(es). Call this new service ‘email-mysql.service’. 5) Adjust systemd to run the ‘email-mysql.service’ automatically once every six hours. 6) Lastly, include necessary Bash commands to upload your container to an ssh server with the IP address 192.168.1.1. Assume the username and password are 'auis' and 'pass123', res
In this assignment, you are required to write a bash script, call it mycontainer.sh to do the following tasks:
1) Create an LXD container based on ubuntu.
2) Install the latest version of mysql on the container created in Step 1. Then, start the
3) Print the process ID of the running database, then give this process the highest possible priority.
4 Inside the container, create a new systemd service to:
Re-execute Step 3 to adjust the priority.
Send a notification message to your AUIS email address(es).
Call this new service ‘email-mysql.service’.
5) Adjust systemd to run the ‘email-mysql.service’ automatically once every six hours.
6) Lastly, include necessary Bash commands to upload your container to an ssh server with the IP address 192.168.1.1. Assume the username and password are 'auis' and 'pass123', respectively.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)