LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-23-2006, 09:15 AM   #1
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
Smf


x86
Solaris 10

How can i add options to a command that is managed by SMF ? For example the

svc:/system/system-log:default

is just stared with no options, /usr/sbin/syslogd shows ps -ef

How can add options, so that syslog starts with for example -d for debugging, so it would say /usr/sbin/syslogd -d when typing ps -ef

This goes for every process that is managed with SMF, how to add startup options



Thanks for helping

Ole
 
Old 08-23-2006, 09:39 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can see a service configuration by looking the file /var/svc/manifest/system/<service-name>.xml, and in particular the command it launches, if any.

For example, system-log service shows this:
Code:
  <exec_method
    type='method'
    name='start'
    exec='/lib/svc/method/system-log'
    timeout_seconds='600' />
That means the start script is /lib/svc/method/system-log , which you can modify to add options or whatever, at your own risks ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
svc / smf questions linuxtesting2 Solaris / OpenSolaris 11 08-29-2008 10:03 AM
questions about installation, and smf linuxtesting2 Solaris / OpenSolaris 1 06-13-2006 03:57 PM
Solaris 10 SMF Configuration. Zepiroth Solaris / OpenSolaris 1 11-30-2005 06:19 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration