Raul Ortega writes: > Thanks for the answers, and after check all possibilities and excuse my > ignorance, but, how a method context not have a directory? do you mean user > 's home directory? > > > This message posted from opensolaris.org > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org
Raul, You can set a method context in the manifest for the service. This is used to establish the operating environment for the start, stop and refresh methods. Here is an example of one that I was using for experimental purposes: <method_context working_directory='/var/tmp'> <method_credential user='xxx' group='staff' /> <method_environment> <envvar name='BOGUS' value='1' /> </method_environment> </method_context> If the working_directory is specified, startd will try to chdir to that directory before execing the start method. If the working_directory is not specified, startd will try to chdir to the home directory of the specified user. If user is not specified, startd will assume that the start method should be run as root. startd will check /etc/passwd to get the home directory of root and try to chdir to that directory. If the directory specified by any of these methods does not exist, you will get a message like the one in your origiinal mail. tom