Skip to content

Instantly share code, notes, and snippets.

View salerno-rafael's full-sized avatar

Rafael Salerno salerno-rafael

View GitHub Profile

#install in amazon linux

sudo amazon-linux-extras install epel -y sudo yum install stress -y

#Example to stress 2 cores for 60 seconds

stress --cpu 2 --timeout 60

  1. Put the script commands you wish to run in /usr/bin/myscript (this is a service path)
  2. Make the script executable with chmod +x
  3. Create service file /usr/lib/systemd/system/my.service
  4. add the info below in file

[Unit] Description=To change In test buffer After=network.target

[Service]