I've heard from the WilliamH on the IRC that /sbin/openrc --runscript could be an alternative. Let's track the issue here. Reproducible: Always
<WilliamH> Ouch, #!/sbin/openrc --runscript is not going to work because of how shebangs are handled.. [03:36] Could you paste some details on how it fails? We could make it shorter as "/sbin/openrc --script" or just "/sbin/openrc -s".
FYI, the triggering issue is that minicom[1] distributes a binary called runscript in PATH, conflicting with /sbin/runscript in OpenRC. 1. http://en.wikipedia.org/wiki/Minicom
The problem isn't the length of the name, but the fact that both openrc and runscript have command line arguments. If I make --runscript a command line argument to openrc, I have to then combine both sets of switches. I am working on this patch; I think I am going to just create another symlink, called openrcscript instead of runscript. I will keep the runscript symlink for a while for compatibility, but print a deprecation warning if it is used. That means that scripts will work as they are, but OpenRC will recommend changing the shebang line.
(In reply to William Hubbs from comment #3) > The problem isn't the length of the name, but the fact that both openrc > and runscript have command line arguments. If I make --runscript a > command line argument to openrc, I have to then combine both sets of > switches. > > I am working on this patch; I think I am going to just create another > symlink, called openrcscript instead of runscript. > I will keep the runscript symlink for a while for compatibility, but > print a deprecation warning if it is used. > > That means that scripts will work as they are, but OpenRC will > recommend changing the shebang line. Nice. I'm fine with this idea.
I actually got a suggestion for another name that is better, openrc-run. That is what I will be using instead. William
(In reply to William Hubbs from comment #5) > I actually got a suggestion for another name that is better, openrc-run. > That is what I will be using instead. Thanks William, will it be in the git repo soon?
This has been completed in commit 3470eda, and will be included in OpenRC-0.13.
Thanks William. Hope I could roll out a name collision free OpenRC for Debian by the end of 2013.