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...


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', respectively.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here