Date: 9.12.2024
Lab Activity Duration: 3-4:20pm
In this lab students were introduced to systemd to create a mechanism to upload their script to GitHub upon boot.
<aside> đź’ˇ
[REMINDER] Students cannot be in C037 alone (or with Koray) so we will end the labs promptly at 4:20 (huh huh) pm every Thursday.
</aside>
All groups got a systemd file that was written in a way that it would work—though some were not working because the .sh script was improperly configured
Q. Where is systemd?
A. /etc/systemd is most optimal. /lib/systemd/system, /usr/lib/systemd/system are for things relating to packages rather than sysadmin-related settings
Q. what should be permissions?
sudo chown student334:student334 /path/to/file
sudo chmod 744 /path/to/file
Q. Can we use .bashrc or rc.local?
A. maybe? But you can’t open terminal if you don’t know IP and you want to make sure it runs after network is setup, so this isn’t a great idea
After: [network.target](<http://network.target>)
was used instead of After: network-online.target
.