Last active
August 16, 2023 08:15
-
-
Save dragolabs/05dfe1c0899221ce51204dbfe7feecbb to your computer and use it in GitHub Desktop.
Supervisor and systemd config for jenkins slave
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Jenkins Slave | |
Wants=network.target | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/java -Xms512m -Xmx512m -jar /opt/jenkins/slave.jar -jnlpUrl http://${JENKINS_SERVER}/slave-agent.jnlp -secret ${SECRET} | |
User=jenkins | |
Restart=always | |
RestartSec=10 | |
StartLimitInterval=0 | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:jenkins-slave] | |
command = /usr/bin/java -Xms512m -Xmx512m -jar /opt/jenkins/slave.jar -jnlpUrl http://${JENKINS_SERVER}/slave-agent.jnlp -secret ${SECRET} | |
stdout_logfile = syslog | |
redirect_stderr = true | |
user = jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Helpful! Thanks for sharing!