Peter van Gemert wrote: Hi Peter, > first feature is a simple way of looking at a service log file. Nowadays I > have to first find the logfile name with svcs -l fmri and than do a > cat/more/less on the file name found. I'm suggesting adding a command to > OpenSolaris that will take a fmri as argument and then display the content of > the log file. > > (bash):root at ferrari:/root # svcs -x ssh | grep log See: /var/svc/log/network-ssh:default.log
or view $( svcs -x ssh | grep log | awk '{ print $2 ; }' ) > The second feature is finding a the methods of a service easily. To find the > names of the methods used by a service again takes multiple steps. First take > a look in the log file and then do a cat on the method name found. It's also > possible to find this information with svcprop but I always forget the > properties used for storing the start and stop methods. > > (bash):root at ferrari:/root # svcprop ssh | grep exec start/exec astring /lib/svc/method/sshd\ start stop/exec astring :kill refresh/exec astring /lib/svc/method/sshd\ restart > Am I alone in wanting this features in OpenSolaris? > > Not that difficult I think and very simple to write a script that does what you want. In my opinion the features are nice to have but not really important But that's only my 2 cents regards Bernd > Greetings, > Peter > > > I created two shell scripts to show you what I'm after. > > Examples: > # svclog ssh > ... output skipped ... > [ Feb 21 10:51:08 Executing start method ("/lib/svc/method/sshd start") ] > [ Feb 21 10:51:11 Method "start" exited with status 0 > > # svcmethods ssh > fmri svc:/network/ssh:default > logfile /var/svc/log/network-ssh:default.log > start method /lib/svc/method/sshd start > stop method :kill > > > This message posted from opensolaris.org > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org > > -- Bernd Schemmer, Frankfurt am Main, Germany http://home.arcor.de/bnsmb/index.html M?s temprano que tarde el mundo cambiar?. Fidel Castro