File jenkins-agent.service of Package jenkins-agent

[Unit]
Description=Jenkins Agent
Documentation=https://www.jenkins.io/doc/book/using/using-agents

[Service]
User=%N
Group=%N
EnvironmentFile=/etc/sysconfig/jenkins-agent
ExecStartPre=/usr/sbin/jenkins-agent-download.sh
ExecStartPre=/usr/libexec/jenkins-agent-workdir.sh
WorkingDirectory=-/var/opt/jenkins
ExecStart=/usr/bin/java -jar /opt/jenkins/bin/agent.jar -jnlpUrl $JENKINS_AGENT_JNLP_URL -workDir $JENKINS_AGENT_WORK_DIR $JENKINS_AGENT_ARGUMENTS
PermissionsStartOnly=true
ProtectClock=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by