aakash berde writes:
> If I want to make reference of the application binaries in the form of
> symbolic link. i.e /opt/../../bin/application file should be binary
> file and sbin/application or /usr/bin/application will be a symbolic
> link to /opt/../../bin/application file, then how I can achieve this?

I've answered the same question more than once: you should _not_ be
putting _anything_ into /usr/bin.  Nothing.  No symlinks, no files, no
directories.  Nothing at all.

/usr/bin (and /usr/sbin) belong to the system itself.  Please do read
filesystem(5); it describes how directories are used in System V and
in Solaris.

> Any script I should write for this?
> At present I am using request,checkinstall and copyright scripts only.

You could do this in a postinstall script.  If you do it, though,
you're on your own, because you shouldn't be doing this.

> > > 2. To start my application during boot what I need to do? Is any file to
> > be
> > > written in init.d/rc2.d/rc3.d ?
> >
> > For Solaris 9 and older, yes. For newer, you should be delivering an
> > SMF manifest instead.
> >
> Can you please help me in how to use SMF to start my application at
> startup on solaris 10?
> Are there any quick steps to implement this? I read the smf manual but
> not getting a clear idea of how to use it.

You need to deliver a manifest that invokes the start script for your
application.  Probably the *quickest* start (though perhaps not the
best one) is to look through the existing manifests in
/var/svc/manifest and choose one that's closest in behavior to your
application as a template.

When testing, you can use "svccfg import yourservice.xml" to import
your manifest.

Use the smf-discuss at opensolaris.org list if you need more help with
that part.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to