Isn't the 21st century way of starting a service to use SMF in OpenSolaris?
This website walks through a specific example with openldap:
http://lowks.inigo-tech.com/blog/coreblogentry.2007-03-23.0477221442
Once you have the manifest set up, you can use interface libraries in
libscf such as smf_enable_instance, smf_disable_instance, smf_get_state.
Would anyone more familiar with SMF like to comment?
Ian Collins wrote:
Durga Deep Tirunagari wrote:
Folks,
we were running LINT against our code and it spewed out the following warning:
warning: avoid using system() as it invokes the shell (E_SEC_SHELL_WARN)
Here is the code snippet:
sprintf (start_command,"%s", "/opt/SUNWdsee/start-slapd");
(void) system(start_command);
In addition to the other reply, you shouldn't have to use the ghastly
(void)system() just to silence lint warnings.
Ian
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org