[Bug 691549] New: systemd: obs-worker does not start
https://bugzilla.novell.com/show_bug.cgi?id=691549 https://bugzilla.novell.com/show_bug.cgi?id=691549#c0 Summary: systemd: obs-worker does not start Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dimstar@opensuse.org QAContact: adrian@novell.com Found By: --- Blocker: --- Factory system when enabling systemd and trying to start obsworker, it gives 'successful' but then does not run. #> rcobsworker status obsworker.service - LSB: openSUSE Build Service worker Loaded: loaded (/etc/init.d/obsworker) Active: active (exited) since Wed, 04 May 2011 00:44:18 +0200; 6s ago Process: 3833 ExecStart=/etc/init.d/obsworker start (code=exited, status=0/SUCCESS) Main PID: 3859 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/obsworker.service restarting the service does not do anything new. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c1
Adrian Schröter
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c2
--- Comment #2 from Dominique Leuenberger
Yes, we don't support systemd yet with any script. Something for later since it is anyway not default and gives no benefit on an OBS server. Patches are welcome of course :)
Understandable. Just to put an emphasis on this here: this is truly valid in large scale deployments. I for one use my workstation as worker, where systemd might sooner or later be used (and does make a difference). I doubt everybody is using full blown server architecture as 'their' obs instance. (The 'issue' apparently seems to be 'screen', which does not have a pty available to detach from') -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c3
--- Comment #3 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c4
--- Comment #4 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c5
--- Comment #5 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c6
--- Comment #6 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c7
--- Comment #7 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c8
--- Comment #8 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c9
--- Comment #9 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c10
--- Comment #10 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c11
--- Comment #11 from Dominique Leuenberger
mount | grep run tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c12
--- Comment #12 from Dominique Leuenberger
cat /lib/systemd/system/var-run.mount # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.
[Unit] Description=Runtime Directory Before=local-fs.target [Mount] What=tmpfs Where=/var/run Type=tmpfs Options=mode=755,nosuid,nodev,noexec -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c13
Kay Sievers
My guess is that /var/run is mounted noexec.
Yeah, that's not what /var/run is for, hence the noexec. It's for rather tiny runtime-state files, like pid files, of services, not for binaries to execute from there. I guess the build directory should move to its own tmpfs mount in /var, or use /var/tmp instead. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c14
--- Comment #14 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c15
--- Comment #15 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c16
--- Comment #16 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c17
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c18
--- Comment #18 from Kay Sievers
I don't think the noexec makes any sense on /var/run, it can't be a security issue because programs can be started with /lib/ld-2.11.3.so anyways.
Sure? How can ld map these pages executable? But we have other tmp-like directories which have exec, so it's does not add too much, I guess. It's currently discussed to drop the noexec. I'll update when a decision is made. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c19
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c20
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=691549
https://bugzilla.novell.com/show_bug.cgi?id=691549#c21
--- Comment #21 from Kay Sievers
participants (1)
-
bugzilla_noreply@novell.com