I would like to start two Perl scripts at startup of one of my OpenSolaris zones. In Ubuntu Linux there is a file /etc/rc.local which is executed at boot up.
Is there such a file in OpenSolaris? I tried first to start my two simple files with svccfg, but I gave up. After a successfull import, they did not appeared at "svcs -a", and I guess there are more steps to configure. Here is an example of my simple SMF XML file: <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type='manifest' name='count_lines'> <service name='application/network/count_lines' type='service' version='1'> <exec_method type='method' name='start' exec='/var/www/trashmail/sbin/cnt_lines.pl' timeout_seconds='2' /> <exec_method type='method' name='stop' exec=':kill' timeout_seconds='2' /> </service> </service_bundle> cnt_lines.pl is a Perl daemon script and will run in background. I have no idea if I'm forced to create this "method" shell script files. I suppose that SVC knows how to kill processed which they started? So I validated and imported this XML-file and no service "count_lines" appeared when I execute "svcs -a". So what would be the best solution? -- This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list opensolaris-help@opensolaris.org