I ve seen lots of scripts out there for manually stopping/starting services in a list, but how can I generate that list programatically of -just- the automatic services. I want to script some reboots, and am looking for a way to verify that everything did in fact start up correctly for any services that were supposed to.
How do I restart Mac OS X using C++ (not Objetive-C) without invoking any child processes? Don t care if it s ungraceful. system("reboot"); //Is not acceptable as it relies on invoking a process