Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904101 - =dev-util/jenkins-bin-2.396 fails to start. Unrecognized option: --daemon
Summary: =dev-util/jenkins-bin-2.396 fails to start. Unrecognized option: --daemon
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-10 09:30 UTC by dE
Modified: 2023-07-15 18:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)