Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Created January 26, 2024 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rssnyder/d830bce54f504407986daaa3585d1b18 to your computer and use it in GitHub Desktop.
Save rssnyder/d830bce54f504407986daaa3585d1b18 to your computer and use it in GitHub Desktop.
stress systemd
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 1
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 2
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 3
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 4
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 5
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
[Unit]
Description=stress
[Service]
SyslogIdentifier=stress
StandardOutput=journal
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/stress -c 6
Restart=always
RestartSec=90
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment