[systemd-bugs] [Bug 82565] New: Return value of systemctl start is 0 even though execution fails
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 13 07:23:43 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=82565
Priority: medium
Bug ID: 82565
Assignee: systemd-bugs at lists.freedesktop.org
Summary: Return value of systemctl start is 0 even though
execution fails
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: umut at tezduyar.com
Hardware: Other
Status: NEW
Version: unspecified
Component: general
Product: systemd
I tried to start systemd-journal-gatewayd.service and echo $? shows success
even though start up failed.
[root at none /mnt/flash/root]890# systemctl start
systemd-journal-gatewayd.service
[root at none /mnt/flash/root]890# echo $?
0
[root at none /mnt/flash/root]890# journalctl -xn
-- Logs begin at Wed 2014-08-13 16:12:24 UTC, end at Wed 2014-08-13 16:20:19
UTC. --
Aug 13 16:19:14 none systemd[1]: Started Journal Gateway Service.
-- Subject: Unit systemd-journal-gatewayd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-journal-gatewayd.service has finished starting up.
--
-- The start-up result is done.
Aug 13 16:19:14 none systemd[920]: Failed at step NAMESPACE spawning
/usr/lib/systemd/systemd-journal-gatewayd: Operation not permitted
-- Subject: Process /usr/lib/systemd/systemd-journal-gatewayd could not be
executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/lib/systemd/systemd-journal-gatewayd could not be executed
and failed.
--
-- The error number returned while executing this process is 1.
Aug 13 16:19:14 none systemd[1]: systemd-journal-gatewayd.service: main process
exited, code=exited, status=226/NAMESPACE
Aug 13 16:19:14 none systemd[1]: Unit systemd-journal-gatewayd.service entered
failed state.
Aug 13 16:20:19 none systemd[1]: Mounted Temporary Directory.
-- Subject: Unit tmp.mount has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tmp.mount has finished starting up.
--
-- The start-up result is done.
Aug 13 16:20:19 none systemd[1]: Starting Journal Gateway Service...
-- Subject: Unit systemd-journal-gatewayd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-journal-gatewayd.service has begun starting up.
Aug 13 16:20:19 none systemd[1]: Started Journal Gateway Service.
-- Subject: Unit systemd-journal-gatewayd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-journal-gatewayd.service has finished starting up.
--
-- The start-up result is done.
Aug 13 16:20:19 none systemd[928]: Failed at step NAMESPACE spawning
/usr/lib/systemd/systemd-journal-gatewayd: Operation not permitted
-- Subject: Process /usr/lib/systemd/systemd-journal-gatewayd could not be
executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/lib/systemd/systemd-journal-gatewayd could not be executed
and failed.
--
-- The error number returned while executing this process is 1.
Aug 13 16:20:19 none systemd[1]: systemd-journal-gatewayd.service: main process
exited, code=exited, status=226/NAMESPACE
Aug 13 16:20:19 none systemd[1]: Unit systemd-journal-gatewayd.service entered
failed state.
[root at none /mnt/flash/root]890# systemctl status
systemd-journal-gatewayd.service
● systemd-journal-gatewayd.service - Journal Gateway Service
Loaded: loaded
(/mnt/flash/etc/systemd/system/systemd-journal-gatewayd.service; static)
Active: failed (Result: exit-code) since Wed 2014-08-13 16:20:19 UTC; 23s
ago
Process: 928 ExecStart=/usr/lib/systemd/systemd-journal-gatewayd
(code=exited, status=226/NAMESPACE)
Main PID: 928 (code=exited, status=226/NAMESPACE)
Aug 13 16:20:19 none systemd[1]: Starting Journal Gateway Service...
Aug 13 16:20:19 none systemd[1]: Started Journal Gateway Service.
Aug 13 16:20:19 none systemd[928]: Failed at step NAMESPACE spawning
/usr/lib/systemd/systemd-journal-gatewayd: Operation not permitted
Aug 13 16:20:19 none systemd[1]: systemd-journal-gatewayd.service: main process
exited, code=exited, status=226/NAMESPACE
Aug 13 16:20:19 none systemd[1]: Unit systemd-journal-gatewayd.service entered
failed state.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140813/8626999e/attachment.html>
More information about the systemd-bugs
mailing list