Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 904101

Summary: =dev-util/jenkins-bin-2.396 fails to start. Unrecognized option: --daemon
Product: Gentoo Linux Reporter: dE <de.techno>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: graaff
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dE 2023-04-10 09:30:04 UTC
it seems this particular version fo jenkins does not take the --daemon command line option as specified in the systemd unit.

jenkins.service: Failed with result 'exit-code'.
jenkins.service: Main process exited, code=exited, status=1/FAILURE
        at executable.Main.main(Main.java:347)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at winstone.Launcher.main(Launcher.java:464)
        at winstone.Launcher.getArgsFromCommandLine(Launcher.java:502)
        at winstone.cmdline.CmdLineParser.parse(CmdLineParser.java:53)
Exception in thread "main" java.lang.IllegalArgumentException: Unrecognized option: --daemon

Removing this switch resolves the issue.
Comment 1 Larry the Git Cow gentoo-dev 2023-07-15 18:25:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6a81a66efc3b3150375e11cfc1e206db01cae91

commit e6a81a66efc3b3150375e11cfc1e206db01cae91
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-07-15 18:24:06 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-07-15 18:24:06 +0000

    dev-util/jenkins-bin: fix systemd service file
    
    The --daemon option is no longer available with Jenkins.
    
    Closes: https://bugs.gentoo.org/904101
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-util/jenkins-bin/Manifest                      |  1 +
 dev-util/jenkins-bin/files/jenkins-bin-r5.service  | 11 ++++++
 dev-util/jenkins-bin/jenkins-bin-2.401.2-r1.ebuild | 45 ++++++++++++++++++++++
 dev-util/jenkins-bin/jenkins-bin-2.414.ebuild      | 45 ++++++++++++++++++++++
 4 files changed, 102 insertions(+)