[arch-general] initscripts-splash
Hey all, as been advised before to use the new functions.d functionality i've wrote a splashy functions file which seems to work pretty well. one problem though - since the /etc/rc.d/functions file only expose the source_functions function and doesn't actually execute it, all the functions.d/* files will be ignored unless the source_functions is specifically being called to. this raise a problem with progressing the progress-bar when starting the daemons in rc.multi - since i was trying to keep the initscripts intact and not change any of the scripts, ive recreated add_daemon in my functions.d/splashy file which does increment the progress bar, but functions.d/splashy will be ignored since all the daemon scripts simply source /etc/rc.d/functions but dont call the source_functions. the only solution i could find was to call source_functions within /etc/rc.d/functions itself which means whenever /etc/rc.d/functions is being sourced, source_functions will be called too. i would like to know the cons for this behavior and whether this shouldn't be the default behavior anyway. also, if someone has a better alternative to make rc.multi/daemons be aware of splashy or the functions.d/* files i'll be glad to hear. Blessings, z4ziggy
participants (1)
-
Elia Yehuda