In /etc/init.d/numlock, line 7: ttyn=${rc_tty_number:-${RC_TTY_NUMBER}:-12} The substituion is wrong if $rc_tty_number is not set in /etc/rc.conf. Reproducible: Always Steps to Reproduce: 1.Comment $rc_tty_number assignment in /etc/rc.conf 2.Restart numlock service Actual Results: ":-12" is assigned to $ttyn Error Ouput: /etc/init.d/numlock: line 22: [: :-12: integer expression expected (OpenRC reports that the service started succefully)
Created attachment 181859 [details, diff] Proposed fix
This bug is there since at least openrc-0.4.0. So I guess it is not necessary to fix it with a new ebuild revision.
Fixed upstream, thanks http://roy.marples.name/projects/openrc/changeset/1500
minor enough to wait for next release.