On Thu, Nov 15, 2018 at 10:37:27AM +0000, Dmitry Bogatov wrote: > [2014-04-29 22:05] Josh Triplett <j...@joshtriplett.org> > > The default /etc/rc.local says: > > > > # In order to enable or disable this script just change the execution > > # bits. > > # > > # By default this script does nothing. > > > > However, the file has the executable bit set by default, making it do > > nothing less efficiently. Since the file already includes instructions > > to enable it by making it executable, please consider making it > > non-executable by default, so that the init script and systemd service > > can efficiently skip it without invoking a shell. > > I tend to agree. Dear co-maintainers, do you have objections? Any > scenario, when making `/etc/rc.local' non-executable by default will > cause breakages?
It would cause nasty surprises for the user -- it's too easy to forget to chmod +x after editing. Heck, knowing myself I know I'd forget it in more than 50% of cases. On the other hand, executing an empty script once per boot takes so little time it's not a worthy optimization. Thus, I vote "no". Meow! -- ⢀⣴⠾⠻⢶⣦⠀ Have you heard of the Amber Road? For thousands of years, the ⣾⠁⢰⠒⠀⣿⡁ Romans and co valued amber, hauled through the Europe over the ⢿⡄⠘⠷⠚⠋⠀ mountains and along the Vistula, from Gdańsk. To where it came ⠈⠳⣄⠀⠀⠀⠀ together with silk (judging by today's amber stalls).