Questions tagged [smf]

The Solaris Service Management Facility--the replacement for init.d scripts in Solaris 10 and up.

Solaris' Service Management Facility (SMF) is a facility for managing system services and replaces traditional init scripts for Solaris 10 and higher. It's similar in concept to upstart or systemd in Linux.

22 questions
10
votes
1 answer

Why is SMF manifest losing configuration data when exported on SmartOS?

I'm running a server process under SMF (Server Management Facility) on Joyent's Base64 1.8.1 SmartOS image. For those not aqauinted with SmartOS, it is a cloud-based distribution of IllumOS with KVM. But essentially it is like Solaris and inherits…
Scott
  • 203
  • 1
  • 7
6
votes
3 answers

Solaris SMF kill service because child dies

I am using SMF to manage a service under Solaris10. This service is itself a process manager, and forks off many child processes, some of which die occasionally (or are killed for various reasons). The service process itself is very robust and never…
aaa90210
  • 351
  • 6
  • 15
2
votes
1 answer

postgres solaris smf service reports status online before it can listen for connections

I have an SMF service (Naviserver web server) that depends on postgres to be up and running (i.e. accepting connections) before it should start. Postgres reports it's status as "online" well before it is actually able to accept any connections. This…
2
votes
1 answer

Solaris SMF Detect Java PermGen?

Is there a way to detect a Java process is out of memory (e.g. PermGen space) and restart it with an SMF contract?
2
votes
2 answers

Correct way to modify startup options for svc:/network/finger:default in Solaris 10?

I want to make "finger" harmless on Solaris 10, and I see this in the man page; OPTIONS fingerd supports the following option. -s Enable secure mode. Deny forwarding of queries to other remote hosts. Is it possible to change the start-up…
Signal15
  • 943
  • 7
  • 27
2
votes
1 answer

How to tell SMF that a service really is online?

This seems trivial, but I have a service in Solaris 10 that's running but SMF thinks it isn't. I could probably get SMF to have the right status by stopping and then starting the service, but in this case the service is SSH, which means I have to…
asciiphil
  • 3,036
  • 3
  • 26
  • 52
2
votes
1 answer

What part of SMF is likely broken by a hard power down?

At one of my customer sites, the local guy shut down their local Solaris 10 x86 server, pulled the power inputs, moved it, and now it won’t start properly. It boots and then presents a prompt which lets you log in. This appears to be single user…
David Mackintosh
  • 14,223
  • 6
  • 46
  • 77
2
votes
3 answers

Solaris SMF: Kill with custom signal, or get PID, or prevent kill of children

In the Solaris Service XML I am using a kill to signal a graceful shutdown This works great, except for the fact that it also kills the child processes, which mostly just…
700 Software
  • 2,163
  • 9
  • 47
  • 77
2
votes
3 answers

Too many open files

In php-fpm.conf I have: rlimit_files = 8192 My server is a 1G SmartMachine from Joyent, meaning it is a Solaris with 1GB memory. My problem is that on high load I get errors like this: Warning (2): touch() [function.touch]: Unable to create file…
webjay
  • 127
  • 9
2
votes
2 answers

SMF restarting service whenever there's output?

I'm trying to add a custom service to SMF's configuration, which seems successful in that the service starts and there is a log file, but therein lies the problem; the service, on start-up, prints some logging messages to the stderr. It seems that…
Phillip B Oldham
  • 1,016
  • 5
  • 15
  • 24
1
vote
2 answers

DNS resolving error in postfix mail queue

mailq gives me this error: F2E7B32820F3 3549 Wed Feb 17 12:15:50 "www-data@info"@hivemind.ru (host mxs.mail.ru[94.100.180.150] said: 421 Problem resolving DNS for domain info"@hivemind.ru (Domain name is syntactically invalid) (in reply to MAIL…
1
vote
1 answer

apache smf refresh does what?

Morning, I am trying to determine what svcadm refresh apache22 does. We have had an issue with connectivity to apache this week where nobody can access anything that apache helps serve up. Doing a refresh seems to let users back in again, but over…
user372429
  • 111
  • 2
1
vote
0 answers

Cannot set up blueimp jquery upload server for Node using SMF on SmartOS

I set up a node blueimp jquery file upload server on a Joyent cloud SmartOS SmartMachine (nodejs 13.1.0) instance. It works fine if I manually start it using the command ./node_modules/blueimp-file-upload-node/server.js. However, if start it using…
Bau
  • 11
  • 2
1
vote
3 answers

Solaris SMF Services - Method "start" exited with status 96

Hi I'm trying to start a new service on server reboot and I got this error on start: "Method "start" exited with status 96". Also my service in on "Maintenance" state. My service is working when I disable/enable it, but not when I restart (wich is…
ciwol
  • 11
  • 1
  • 3
1
vote
1 answer

Solaris SMF for ssh tunnel

I'm tunneling from our web server to our MySQL server, both on Solaris boxes. I've created a SMF manifest for the ssh tunnel in order to reconnect when the web server box reboots. This works great. The problem is I'm not sure what to do when the…
Harry Love
  • 111
  • 3
1
2