I've verified this on Ubuntu 18.04 LTS
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
root@ubuntu:/etc/init.d# systemctl start exitcode
root@ubuntu:/etc/init.d# echo $?
0
root@ubuntu:/etc/init.d# systemctl status exitcodetest
● exitcodetest.service - LSB: Test Exit Code (SysV)
Loaded: loaded (/etc/init.d/exitcodetest; generated)
Active: active (exited) since Mon 2019-05-13 20:14:31 UTC; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3141 ExecStop=/etc/init.d/exitcodetest stop (code=exited, status=6)
Process: 3152 ExecStart=/etc/init.d/exitcodetest start (code=exited, status=6)
May 13 20:14:31 ubuntu systemd[1]: Starting LSB: Test Exit Code (SysV)...
May 13 20:14:31 ubuntu systemd[1]: Started LSB: Test Exit Code (SysV).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1828883
Title:
systemd sysv-compatibility eats exit codes
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1828883/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs