Bug 82565

Summary: RFE: make systemd-journal-gatewayd.service Type=notify
Product: systemd Reporter: Umut Tezduyar <umut>
Component: generalAssignee: systemd-bugs
Status: NEW --- QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Umut Tezduyar 2014-08-13 14:23:43 UTC
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: 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@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.
Comment 1 Lennart Poettering 2014-08-18 20:26:58 UTC
Well, systemd-journal-gatewayd.service is a Type=simple service, hence there's no way how it could report any error cause back to PID1...

We could turn it into Type=notify, but I am not sure if that's really beneficial.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.