<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Return value of systemctl start is 0 even though execution fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82565">82565</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Return value of systemctl start is 0 even though execution fails
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>umut@tezduyar.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I tried to start systemd-journal-gatewayd.service and echo $? shows success
even though start up failed.


[root@none /mnt/flash/root]890# systemctl start
systemd-journal-gatewayd.service
[root@none /mnt/flash/root]890# echo $?
0
[root@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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
-- 
-- 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@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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>