Questions tagged [smf]

Solaris Service Management Facility

It is a feature of the Solaris OS to support unified approach to start, stop and manage services with dependencies while easily replacing the init.d style service management.

SMF introduces:

  • Dependency order. Services sometimes depend on one another for proper operation, and a robust system should know each service's dependencies. If an underlying service fails, it needs to be corrected before other services that depend upon it are affected.

  • Configurable boot verbosity

  • Delegation of tasks to non-root users. A service can be configured to run within a limited set of privileges, rather than as the all-powerful root user. If a service has been compromised, the amount of damage that can be inflicted by the intruder will be minimized if the service's power is constrained to that of a more limited user.

  • Parallel starting of services. This speeds up the boot process by starting multiple services simultaneously, allowing idle CPU time resulting from a service that is temporarily blocked to be relinquished for use by other services that can start independently of the blocked service. Automatic service restart after failure. Works in conjunction with the Solaris Fault Manager, allowing software recovery in the event of hardware faults (cpu, memory), admin error such as accidental kills, and software core dumps.

Further reading at : http://en.wikipedia.org/wiki/Service_Management_Facility

Overview at http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5rh?a=view

12 questions
9
votes
0 answers

Solaris SMF vs Linux Upstart

I'm in the process of learning Upstart after first having learned SMF. Naturally I'm assuming that they fulfill the same purpose but I'm aware that this is where I'm wrong. Ideally I was hoping that someone had written a comparison so that I…
unixhacker2010
  • 547
  • 6
  • 9
5
votes
0 answers

What dictates smf service maintenance mode?

I have smartos machines running a custom application as an smf service (a circonus monitoring agent). On some of these machines the agent errors when starting and gets stuck in a restart loop eventually leading to the machine panicking. For every…
jesse_b
  • 35,934
  • 12
  • 91
  • 140
5
votes
2 answers

Solaris 11.1 and ipfilter

I'm trying to get IP Filter to work on Solaris 11.1. I'm following the official Solaris 11.1 guide. When the host is booted it doesn't pick up the ipf.conf that I expect. Here's the contents of svccfg -s ipfilter:default listprop: config …
peterh
  • 924
  • 1
  • 8
  • 17
4
votes
2 answers

Is there a graphical front end to the Solaris Service Management Facility?

I have a few service errors at startup on an opensolaris installation that I keep put off fixing since I would need to figure out the line commands again. Is there an easier to use front end?
Blake
  • 3,637
  • 2
  • 16
  • 8
4
votes
2 answers

Solaris service status and dependencies

I'm creating service manifests for MySQL and a WebLogic service that depends on the MySQL service. I want all of them to use the management model "wait" (run a process in the foreground). I have some questions about this setup. First, how do I…
julian
  • 199
  • 1
  • 4
  • 10
3
votes
2 answers

How to disable a daemon process on RHEL 6.3 like SMF does on Solaris

This problem has been bugging me for a while, we have a program running on Solaris, which managed as a service well by SMF, can be enabled/disabled very easily. Now, according to our market, we would like to migrate this service to RHEL 6.3, so we…
Hang Pan
  • 31
  • 2
3
votes
1 answer

Solaris: is possible to permit root login on some terms?

I have a server with some serial ports. One is /dev/console, another is /dev/term/b(the ttyS1 under linux and the COM2 under dos). I want root to login under /dev/term/b but.. myserver termb login: root Password: Not on system console myserver…
elbarna
  • 12,050
  • 22
  • 92
  • 170
2
votes
1 answer

Solaris 11: two manifest for service! I want one

I import a rc.local become a SVC service Procedure work but.. I see two manifest! svcs -l svc:/site/rclocal:default fmri svc:/site/rclocal:default name Run-once service enabled true state online next_state …
elbarna
  • 12,050
  • 22
  • 92
  • 170
1
vote
0 answers

Adding periodical ZFS snapshots as SMF service (svc) in OmnioOS Community Edition

I'm very much a novice and an amateur when it comes to Solaris-based operating systems, but I've played around with both Solaris and OpenIndiana. Anyway, I'm currently toying with OmniOS Community Edition, and I have noticed that all the…
Baard Kopperud
  • 7,023
  • 6
  • 42
  • 62
1
vote
1 answer

Solaris 11 manifest-import does not automatically import my manifest

I have a manifest XML file. When I copy my XML to /var/svc/manifest/ and restart manifest-import service sudo svcadm restart svc:/system/manifest-import, the service does not appear in my service list. However, when I import it manually, i.e. sudo…
pydoge
  • 121
  • 4
1
vote
1 answer

Solaris 11 ipfilter service stops on physical link down

I have a Solaris 11 host with multiple network interfaces, and configured IPFilter to do some NAT works; however every time a physical link down, the ipfilter service becomes disabled; even if the link was later restored, the service will remain in…
Low power
  • 241
  • 1
  • 6
0
votes
1 answer

Solaris and smf: how to do a rc.local shutdown with smf?

With the old good SystemV scripts, if I want something before shutdown, I put a script like this in /etc/rc0.d/ K400rc.local.shutdown.sh And I edit it and put my commands which I want to run before shutdown. On linux with systemd I have created a…
elbarna
  • 12,050
  • 22
  • 92
  • 170