By "at startup", you mean once on system boot? In that case, I would use another method (such as /etc/init.d scripts), especially if you need to run as root.