Why does that command not want to work in a startup script?  Is the boot environment different?

By default rc-local is not running; therefore, you will need to enable the server
# systemctl enable rc-local
When you reboot your box the script will execute as long as the execute bit is on
# chmod +x /etc/rc.local

Hope this help.

--
Kind Regards
Earl Ramirez