Ismael Luceno escribió:
> Ismael Luceno escribió:
>> I want to make runiscript more generic.
>>
>> I'm thinking about moving the current code added by runiscript to a
>> wrapper script.
>>
>> That way we can do something like:
>>
>> $ runiscript bash /path/to/the/script
>>
>> And runscript should run something like
>> $ /lib/initng/scripts/bash /path/to/the/script
>>
>> That will ease adding support for other shells, and maybe some
>> compatibility stuff, as it will only require writting a script :).
>>
>> What do you think guys?
>>
> 
> Wrapper scripts will look like:
> 
> #!/bin/sh
> 
> eval "${COMMAND}() {
>       echo \"ERROR: ${SERVICE} command ${COMMAND} not found.\"
>       return 1
> }"
> 
> export PATH="/lib/ibin:${PATH}"
> source "${SERVICE_FILE}"
> 
> ${COMMAND}
> 

I've commited the code for the wrappers stuff, so they need testing ;).

Wrappers are a great way to modify the way in that services are
loaded... :)


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to