[csw-maintainers] cswclassutils: location of template init scripts
Philip Brown
phil at bolthole.com
Wed Jun 2 18:22:25 CEST 2010
Urk. posted too quickly. here's rev 2, slightly cleaned up.
cswinitsmf will be modified, so that it keeps track of file(s)
registered for a package, under /opt/csw,
in
/opt/csw/etc/cswinitsmf/CSWxxx (a directory)
It will copy or symlink relevant files into there.
For global zone, it will otherwise act as normal.
Zone behaviour
If the init files were in /etc/opt/csw, then copy into above mentioned
directory(if writable. or otherwise, verify that they are already
there), and proceed as normal.
If the init files were in /opt/csw/etc/init.d, then it will get
called, but without a normal list of files on stdin.
We can then detect "hey I was called with no files",and instead have
it go look in
/opt/csw/etc/cswinitsmf/$PKGINST, and process those files, as its file
list for the zone.
More information about the maintainers
mailing list