> Hi guys! I have just installed opensolaris 2008.05. > I have downloaded mysql and tar it. I have copied > "mysql.server" script to /etc/init.d > what i want is the /etc/init.d/mysql.server to start > everytime at boot up so that I do not have > to type /etc/init.d/mysql.server start everytime I > would like to start it. > > Thanks.
The new way to do it is to create an SMF manifest and method script; that will get it restarted for you automatically if it dies, and is capable of being smarter about dependencies, starting as much as possible in parallel while still satisfying them. The legacy way is to link or symlink your /etc/init.d/mysql.server script to /etc/rc2.d/S##mysql.server or /etc/rc3.d/S##mysql.server (choosing the rc2.d or rc3.d directory and the number for ## so as to have it start up in more or less the right place relative to other rc*.d scripts). You also want to add a K##mysql.server script to /etc/rc[02S].d to shut it down. See http://opensolaris.org/os/community/smf/faq/ for the new way, and http://opensolaris.org/os/community/smf/manifests/ for a collection of contributed SMF manifests. If mysql server is bundled into or in the package repository for 2008.05 (which I don't know, since those are only x86 so far and I'm only SPARC and thus limited to using SXCE), and that build of mysql is good enough for you, it probably already includes an SMF service description, which you would simply have to enable. Check if you already have it with something like # svcs -a|grep -i mysql This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
