[Dropped Peter and Petr as I probably should have respectfully done on the first email]
Antonello Cruz wrote: > Mark, > > Could you please provide a directory tree example of what you are > trying to achieve? I am not quite sure I see how you're proposing the > contents of /var/run to be. Nothing quite elaborate, I hope. It would just be a virtual file system, very much like /proc, which mounts somewhere near where pid files are typically located. It would be read-only, and would probably be nothing more than a list of processes (the contents being the pid values). You'd probably need a way to avoid name collisions. As a use case, imagine that I specified in a manifest somewhere a location to "export" the pid "file". <service name='network/myserver' type='service' version='1'> ... <contract_export type="pid_file" name="/var/run/pids/tomcat.pid"/> ... /service> Here I'm only interested in having the pid for tomcat available as a file system element (using the /old school/ pid file interface). Perhaps I could export other information, such as contract information or child information via additional extensions, specified in the "type" attribute as in the XML above. Meanwhile, back in some other system, I can specify the Tomcat "pidfile" to be /var/run/pids/tomcat.pid. The problem I'm trying to solve is to preserve SMF as the management interface and service infrastructure, yet allow exporting of process information (specifically the pid) in the traditional pid file fashion. I'm not trying to redefine /var/run at all, I'm just using that as an example location to mount this pseudo file system due to it's conventional (or standard) nature as a normal place to put those files. In my example above, $(RUNTIME_INFO)/pids is the location to put the pseudo file, although I suspect you'd have to define that mount point at a global level, and then simply tell SMF to "hang" its files there if specified to do so. In other words, "/pids" is defined as a file system, and SMF (and friends) are allowed to create files in that system that are ro to the rest of the world.
