diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-12-11 11:32:36 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-12-11 11:32:54 +0100 |
commit | 6bb8646ba90649df00938a7919b985364558760e (patch) | |
tree | b5e56fe04a0aa12f13972b15d3a776fe97ae232a /dev-util/jenkins-bin/files | |
parent | mail-filter/spamassassin: Security cleanup (diff) | |
download | gentoo-6bb8646ba90649df00938a7919b985364558760e.tar.gz gentoo-6bb8646ba90649df00938a7919b985364558760e.tar.bz2 gentoo-6bb8646ba90649df00938a7919b985364558760e.zip |
dev-util/jenkins-bin: use jenkins.conf also for systemd
Use the options specified in /etc/conf.d/jenkins.conf also
for the systemd service, rather than hardcoding specific values.
Thanks to Georg Voigtländer for providing the updated service file.
Bug: https://bugs.gentoo.org/665030
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-util/jenkins-bin/files')
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.service2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/files/jenkins-bin.service2 b/dev-util/jenkins-bin/files/jenkins-bin.service2 new file mode 100644 index 000000000000..f109fac02cc9 --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin.service2 @@ -0,0 +1,11 @@ +[Unit] +Description=Jenkins Daemon + +[Service] +EnvironmentFile=/etc/conf.d/jenkins +Type=forking +ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -DJENKINS_HOME=${JENKINS_HOME} -jar ${JENKINS_WAR} --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=${JENKINS_PORT} --debug=${JENKINS_DEBUG_LEVEL} --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log ${JENKINS_ARGS} +User=jenkins + +[Install] +WantedBy=multi-user.target |