when using custom init functions, such as reload() in /etc/init.d/nginx, although the function exit without zero, init script exitcode will be zero. Reproducible: Always Steps to Reproduce: 1. make some syntax error in /etc/nginx/nginx.conf 2. /etc/init.d/nginx reload, you will see error 3. echo $? Actual Results: exit code is 0 Expected Results: it should be the reload function's exitcode i browse the openrc sourc, and find in src/rc/runscript.c:1385 svc_exec(optarg, NULL); here does not catch the return code, i think it should be retval = svc_exec(optarg, NULL);
I tested your change, and you are correct. This has been added to git as commit 6d5b452, and it will be part of the next openrc release.
(In reply to comment #1) > I tested your change, and you are correct. This has been added to git as > commit 6d5b452, and it will be part of the next openrc release. er, may i ask when will be the next version released?