The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2006-11-22 01:58:29

benr
Systems Team
From: Silicon Valley
Registered: 2006-09-26
Posts: 119
Website  Expertise

HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

There are 2 ways to have your applications automatically start at boot time on Solaris: SMF and Legacy Init Scripts. Lets examine init scripts first.

Legacy Init Scripts are just what the name suggests, the good ol' RC scripts you've used forever on System V based UNIX. They typically look something like this:

Code:

$ cat /etc/init.d/acct

#!/sbin/sh
state="$1"

case "$state" in
'start')

echo 'Starting process accounting' /usr/lib/acct/startup ;;

'stop')

echo 'Stopping process accounting' /usr/lib/acct/shutacct ;;

*)

echo "Usage: $0 { start | stop }" exit 1 ;;
esac
exit 0


As you can see in the example above, a legacy init script typically is simply a case statement that handles at least 2 arguments: start and stop. Very often these scripts will have other options like "status", "restart", "refresh" and others.

These script are stored in /etc/init.d. They are then symlinked into various RC directories, 1 directory per run-level the most commonly used being /etc/rc2.d and /etc/rc3.d . Init scripts symlinked into these directories are prefixed with either a capital S for "Start" or K for "Kill", followed by two numbers. When a system is booted scripts in these run-level directories are run if they start with a S and sequentially based on the two digits, so S00whatever is run first, then S01something, so on and so forth. This is why user added scripts tend to be named S99something, to ensure that they run last. If you have two scripts with the same digits (S99apache and S99bind) thats fine.

So lets say you want /etc/init.d/cswapache2 to start at boot, you'd do this:

Code:

# ln -s /etc/init.d/cswapache2 /etc/rc3.d/S99cswapache2


In a like manner, if something is already set to run at boot but you don't want it to, you can either rename the script so it doesn't begin with a capital S or just delete the symlink.

This is the simple and long accepted way of starting things. Why why bother with something new? Several reasons actually:

  • Init scripts are stupid. If your application or daemon stops running there is nothing to notice that it stopped and restart it. The long time work around for this was either to use HA software or to have it started in the which will restart a failed process but isn't smart enough to know that at some point it should give up, it'll just keep restarting it forever.
  • Init scripts start sequentially, they don't start in parallel. This is because any script may be dependent on any earlier run script and since it doesn't know what those dependencies are it can't make any type of judgment on how to go about things. Consequently you get longer boot times.
  • The system has no idea whats broken, little less why. This is back to the "init is stupid". If a script runs and errors out for some reason the init system doesn't care, it just keeps going on down the list of stuff to start.
  • Because the init scripts have no sense of dependencies, if restarting Apache, for instance, requires restarting OpenLDAP as well, it doesn't know to do that unless you specifically modify the script. It'd be nice if when something was restarted anything else effected by it would be restarted as well.
  • And on and on....

    We've lived with these flaws far too long. Now several solutions have arisen and the power powerful of them is Solaris's Service Management Facility, otherwise known as SMF. SMF is dependancy aware, human friendly, and very smart.

    With SMF we start to look at our applications and daemons as services. Using the svcs command we can view running services, if you add the "-a" option it'll show you all services running or not.

    Code:

    $ svcs
    STATE STIME FMRI
    legacy_run Nov_19 lrc:/etc/rc2_d/S20sysetup
    legacy_run Nov_19 lrc:/etc/rc2_d/S72autoinstall
    legacy_run Nov_19 lrc:/etc/rc2_d/S73cachefs_daemon
    legacy_run Nov_19 lrc:/etc/rc2_d/S85cswsaslauthd
    legacy_run Nov_19 lrc:/etc/rc2_d/S89PRESERVE
    legacy_run Nov_19 lrc:/etc/rc2_d/S98deallocate
    legacy_run Nov_19 lrc:/etc/rc3_d/S50cswapache2
    online Nov_19 svc:/system/svc/restarter:default
    online Nov_19 svc:/system/filesystem/root:default
    online Nov_19 svc:/network/loopback:default
    ...
    online 10:20:09 svc:/network/nfs/cbd:default
    online 10:20:09 svc:/network/nfs/nlockmgr:default
    online 11:25:07 svc:/application/postgres:default


    Here we can see the legacy init scripts that are running, and a few of the SMF services that are online, as well as when they last changed state (ie: started). You'll notice that each service has an identifying "FMRI" (Fault Management Resource Identifier) which is used by other Solaris frameworks such the Fault Management Architecture (FMA).

    Dealing with services is easy. We can use the svcadm command to "enable", "disable", "refresh", "restart", or otherwise change the state of a given service.

    Code:

    $ svcs -a | grep -i mysql
    disabled Nov_17 svc:/network/cswmysql5:default
    $ svcadm enable svc:/network/cswmysql5:default
    $ svcs -a | grep -i mysql
    online 16:54:36 svc:/network/cswmysql5:default
    $ svcadm restart svc:/network/cswmysql5:default
    $ date
    Tue Nov 21 16:55:26 PST 2006
    $ svcs -a | grep -i mysql
    online 16:55:27 svc:/network/cswmysql5:default


    In this example above I looked for any MySQL services and found network/cswmysql5 , so I enabled it, verified that it was online, then restarted it and checked again. Notice that the time at which it was started is displayed.

    Now lets see one way in which SMF is superior to legacy init scripts. When SMF starts something it has a "contract" for that service. That contract keeps track of whats running for any given service. Using the "-p" option we can see what processes are part of a services contract and take advantage of that intellegance.

    Code:

    $ svcs -p network/cswmysql5
    STATE STIME FMRI
    online 16:55:27 svc:/network/cswmysql5:default

    16:55:27 28938 mysqld_safe 16:55:27 29004 mysqld
    $ kill -9 29004
    $ svcs -p network/cswmysql5
    STATE STIME FMRI
    online* 17:00:01 svc:/network/cswmysql5:default 16:55:27 28938 mysqld_safe 17:00:01 29228 mysqld
    $ mysql -u mysql
    ...
    mysql> \q
    Bye


    Notice here that I used svcs -p to list the processes associated with my MySQL5 service. Then I brutally killed mysqld and faster than I can blink the proccess was restarted! You can see that represented by the "STIME" for mysqld. The asterisk ("online*") indicates that the service is currently in a transistion state, in this case transitioning to online, but as you can see MySQL is already back in action.

    But SMF isn't restarting thing in brain-dead mode like an inittab, we can define thresholds reguarding restarts. For instance, if SMF restarts a service more than 3 times in 60 seconds, something probly very wrong and it should stop attempting it. At that point it'll put the service in a "maintance" mode, and it will stay that way until you clear the state with svcadm clear some/service .

    Lets look at an example of something broken trying to start. I'm going to break MySQL and then try to start it...

    Code:

    $ mv  /opt/csw/mysql5/var/ /opt/csw/mysql5/xxx-var/
    $ svcadm enable network/cswmysql5
    $ svcs network/cswmysql5
    STATE STIME FMRI
    maintenance 17:29:01 svc:/network/cswmysql5:default
    $ svcs -vx
    svc:/network/cswmysql5:default (?)

    State: maintenance since Tue Nov 21 17:29:01 2006
    Reason: Restarting too quickly. See: http://sun.com/msg/SMF-8000-L5 See: /var/svc/log/network-cswmysql5:default.log
    Impact: This service is not running.


    So I moved MySQL's data directory, obviously it can't start without it. When I enable the service it ends up in "maintenance". Using SMF's most magical command svcs -vx we can see a listing of all services that failed to start, why they failed to start, some information about them, the log location, all dependencies of that service that can't start as a result, and even a URL to a page that'll tell us more!

    Now lets resolve the issue and bring the service back online:

    Code:

    $ mv /opt/csw/mysql5/xxx-var/ /opt/csw/mysql5/var/
    $ svcs network/cswmysql5
    STATE STIME FMRI
    maintenance 17:29:01 svc:/network/cswmysql5:default
    $ svcadm clear network/cswmysql5
    $ svcs network/cswmysql5
    STATE STIME FMRI
    online 17:32:57 svc:/network/cswmysql5:default


    The usefulness of the svcs -vx command can not be overstated. The first thing I run when logging into any Solaris 10 or OpenSolaris machine is this command.

    So how do you actually use SMF with your own service?

    SMF Services are defined in XML Manifests. These manifests describe how to start, stop, restart, and refresh (reload the configuration) your application, what dependancies it has, various thresholds, as well as various meta-data that may be useful such as man pages that apply to that service. In addition to the manifest, scripts just like your legacy init scripts can be used which we call methods , or "method scripts".

    Service configuration changes can be made by using the svccfg ("Service Config") tool. The most common uses of this command are to import or export a manifest. For instance, I'm curious what the manifest for that MySQL5 service looks like:

    Code:

    $ svccfg export network/cswmysql5
    <?xml version='1.0'?>
    <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
    <service_bundle type='manifest' name='export'>

    <service name='network/cswmysql5' type='service' version='0'> <create_default_instance enabled='true'/> <single_instance/> <dependency name='fs' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/local'/> </dependency> <dependency name='net' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/network/loopback'/> </dependency> <dependent name='cswmysql5_multi-user' restart_on='none' grouping='optional_all'> <service_fmri value='svc:/milestone/multi-user'/> </dependent> <exec_method name='start' type='method' exec='/opt/csw/lib/svc/method/svc-mysql5 start' timeout_seconds='60'> <method_context/> </exec_method> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'> <method_context/> </exec_method> <exec_method name='restart' type='method' exec='/opt/csw/lib/svc/method/svc-mysql5 restart' timeout_seconds='60'> <method_context/> </exec_method> </service>
    </service_bundle>


    That probly looks really intimidating at first glance, but its really not so bad if you just break it down. First we define our dependencies, for instance MySQL is dependent on the network loopback service and the local filesystems service. There are 3 "exec_methods" which define the methods for start, stop, and restart. If you can start your app or daemon in just a single line then you don't need an external method script, but in the case of this service it opts for a script. Notice the "stop" method uses an SMF shortcut which just kills the processes rather than use a script or command.

    This is only a very simple example, you can put lots more information in there, but its pretty simple XML when you just break it down.

    When you create a new SMF Manifest, you simple put the XML in a file and use svccfg import my_service.xml to import it.

    This is only a taste of what SMF can do for you, for more information please check out the following resources:

  • The OpenSolaris SMF Community: http://opensolaris.org/os/community/smf/
  • System Administration Guide: Basic Administration; Chapter 14. Managing Services: http://docs.sun.com/app/docs/doc/817-19 … 5rl?a=view
  • The Cuddletech SMF Cheat-Sheet: http://www.cuddletech.com/blog/pivot/entry.php?id=182

Offline

 

#2 2006-11-22 02:06:05

rainbowsheep
Member
Registered: 2005-01-15
Posts: 584
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

You rule Ben!

Any chance we could get an example for Mongrel? I'm guessing lots of people would find that handy. (do most people use the containers for Rails work?)

Offline

 

#3 2006-11-22 02:20:32

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4349
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Wow benr we have some reading to catch up on. Thanks (I 'll try to generate the mongrel code and will post it here tomorrow night, unless someone beats me to the punch)


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#4 2006-11-22 15:10:23

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

One gotcha I've thought about in terms of Mongrel and smf: I use mongrel_cluster and the Capistrano recipes included with it. These stop, then start the mongrel processes upon a successful deploy. I don't want Capistrano and smf trying to do the same restart at the same time. Probably the path of least resistance is to change the Capistrano recipes, but it's just something to think about. I plan on thinking about a lot of Rails stuff after digesting tomorrow's dinner...

Offline

 

#5 2006-11-22 16:09:49

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4349
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

I haven't tried to use Capistrano, but it is high on my to-do list, sounds like I should look into that before trying to get the smf up and running. The question I have is does Capistrano handle the machine boot issue? or do we still need two solutions here?


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#6 2006-11-22 16:20:38

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Here is my first working SMF manifest for mongrel (moved it into its own thread so this one can remain about general SMF stuff)

Last edited by mcornick (2006-11-22 17:04:02)

Offline

 

#7 2006-11-22 20:23:00

trel1023
Moderator
Registered: 2004-06-01
Posts: 595
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick - remember textusers.com as well - a collection of these default manifests might be very nice if kept together and named well.

Offline

 

#8 2006-11-29 22:39:09

cesar
Asleep...Zzz..
Registered: 2006-02-23
Posts: 25
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

benr wrote:

When you create a new SMF Manifest, you simple put the XML in a file and use svcadm import my_service.xml to import it.


I'm not sure if it's a recent change but to import an SMF file
svcadm doesn't work instead it's:

svccfg import my_service.xml

Offline

 

#9 2006-11-30 00:50:44

benr
Systems Team
From: Silicon Valley
Registered: 2006-09-26
Posts: 119
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

cesar: Typo. Fixed.

Offline

 

#10 2006-12-01 19:56:35

janovetz
Member
Registered: 2005-12-22
Posts: 471
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Ben's original post has been replicated on the Wiki. It can be seen here:

URL:http://textusers.com/wiki/ContainerSMF

It would be nice if the wiki version were maintained and this thread turned into a pointer to that page. Wiki is just a better tool for this type of presentation. Forums are for discussions. Wikis are for dynamic informational content.

(aside: the forum wouldn't let me include this URL unless I prefixed it with the "URL:" text (or something). That seems odd to me)

Offline

 

#11 2006-12-01 20:03:27

rainbowsheep
Member
Registered: 2005-01-15
Posts: 584
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Yeah, wiki'izing all this container stuff would be great.

Offline

 

#12 2006-12-01 20:10:27

janovetz
Member
Registered: 2005-12-22
Posts: 471
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

FYI, a wiki item has been created for the mongrel stuff here: http://textusers.com/wiki/ContainerSMF_Mongrel

Offline

 

#13 2006-12-01 20:14:42

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

trel1023 wrote:

mcornick - remember textusers.com as well - a collection of these default manifests might be very nice if kept together and named well.


I did put it on textsnippets, which seems the best place of all.

I'll do textusers when I get around to asking for a login. Sorry, "you must request a login" turns me off.

Last edited by mcornick (2006-12-01 20:23:30)

Offline

 

#14 2006-12-01 21:10:26

SuperJared
I love kitties
From: Encinitas, CA
Registered: 2006-02-24
Posts: 755
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

I'll do textusers when I get around to asking for a login. Sorry, "you must request a login" turns me off.


Don't trust me? ;)

Offline

 

#15 2006-12-01 21:19:56

janovetz
Member
Registered: 2005-12-22
Posts: 471
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

I'll do textusers when I get around to asking for a login. Sorry, "you must request a login" turns me off.


Took 30 seconds for me. I am far more sympathetic to this sort of thing. It's impossible to keep the spam off of a wiki/forum/blog unless you do something like this.

Also, I consider the Wiki my own little reference, too. I know I forget stuff. So I'll either note it in my own wiki that I have internally or I'll put it on something like this. This is much more fruitful.

Offline

 

#16 2006-12-02 15:05:26

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4349
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

I'll do textusers when I get around to asking for a login. Sorry, "you must request a login" turns me off.


This is a little bit of pain we all must go through, but compare the 2 minutes of your life once vs the amount of spam this step stops ... well worth it.


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#17 2006-12-03 04:35:09

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

SuperJared wrote:

mcornick wrote:

I'll do textusers when I get around to asking for a login. Sorry, "you must request a login" turns me off.


Don't trust me? ;)


Nothing personal, but... no, I don't. Nor should you really trust me, or anyone else who registers for your wiki with the login "mcornick." Such a person might be a spammer, and you'd never know until it happens.

That's not the crux of my objection, though. It just smacks to me of an exclusive, gated community, and I'm not interested in participating in such things.

That said, since there are others who don't mind jumping through these hoops, I have no problem with this stuff having been posted there by someone else. I don't even mind if a note is made that I refused to register to do it myself.

Offline

 

#18 2006-12-03 06:16:21

janovetz
Member
Registered: 2005-12-22
Posts: 471
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

That's not the crux of my objection, though. It just smacks to me of an exclusive, gated community, and I'm not interested in participating in such things.


Didn't you have to register for these forums?

Offline

 

#19 2006-12-03 06:22:23

SuperJared
I love kitties
From: Encinitas, CA
Registered: 2006-02-24
Posts: 755
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

That's not the crux of my objection, though. It just smacks to me of an exclusive, gated community, and I'm not interested in participating in such things.

That said, since there are others who don't mind jumping through these hoops, I have no problem with this stuff having been posted there by someone else. I don't even mind if a note is made that I refused to register to do it myself.


It's an extra step I see as useful because of one thing: MediaWiki is very popular software and people have software written to spam the shit out of them, registering new account from different IPs all the time. This way I know there is no automated attempt at registration. It's as simple as that.

If you feel it's too much to "jump through" then I am sorry, but the fact remains that the signup is actually easier this way.

Offline

 

#20 2006-12-04 16:27:32

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

janovetz wrote:

mcornick wrote:

That's not the crux of my objection, though. It just smacks to me of an exclusive, gated community, and I'm not interested in participating in such things.


Didn't you have to register for these forums?


Yes, but it didn't require the approval of some other person I don't know.

Yes, I am probably being completely irrational or hypocritical or whatever you want to call it, but that's humans for you.

Offline

 

#21 2006-12-04 16:46:44

mcornick
Member
Registered: 2005-09-06
Posts: 93
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

SuperJared wrote:

It's an extra step I see as useful because of one thing: MediaWiki is very popular software and people have software written to spam the shit out of them, registering new account from different IPs all the time. This way I know there is no automated attempt at registration. It's as simple as that.

If you feel it's too much to "jump through" then I am sorry, but the fact remains that the signup is actually easier this way.


For whom is it "easier"? For the potential contributor, or for the administrator who doesn't feel like dealing with spam and instead shifts the burden onto the end users?

You are, of course, free to run your wiki any way you see fit, but the more barriers you add to entry, the fewer people will enter. If you are comfortable with your current barrier setup, then so be it. Don't be surprised if it continues to detract from contributions, though.

Offline

 

#22 2006-12-04 16:48:56

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4349
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

mcornick wrote:

Yes, but it didn't require the approval of some other person I don't know.

Yes, I am probably being completely irrational or hypocritical or whatever you want to call it, but that's humans for you.


Well think of him(SuperJared) as a distant cousin ... Here at TextDrive we are all just one big extended family :)


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#23 2006-12-13 19:33:10

technoweenie
Member
From: TX
Registered: 2005-01-29
Posts: 66
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

I sent in a request for a wiki account in case you guys don't know me. I'm not very active in the txd community... Took me a minute to find the custom reg page though...

Edit: that was quick, thanks.

Last edited by technoweenie (2006-12-13 19:41:48)

Offline

 

#24 2007-02-03 18:47:12

msears
New member
From: Canada
Registered: 2007-01-09
Posts: 22
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Last night our mongrels went down and SMF tried all night to bring them back online to no avail. The problem was the /log/*.pid files that were present. Two questions arise from this:

1. How can we adjust our manifest file to clean up the pid files as well as :kill for the stop method?

Currently:

<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'> <method_context/> </exec_method>

2. Why didn't SMF mark our service as "maintenance" if it kept failing to come online. Instead a svcs -l shows it was "offiline*" after a few hundred attempts of enabling it? I ask this because we hope to add some monitoring tied to it going into maintenance. (btw, anybody know how to do this? nagios? something else at TxD?)

Thanks in advance for any help. This SMF stuff is slick but still pretty new to me...

Offline

 

#25 2007-02-04 02:04:05

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Upgrade to mongrel_cluster to 0.2.2 (have to use gem install mongrel_cluster --source http://mongrel.rubyforge.org/releases/) and add --clean to the startup line.

Jason Hoffman: Subject: [Mongrel] [ANN] mongrel_cluster 0.2.2 prerelease
Date: January 25, 2007 9:10:01 PM PST
To: mongrel-users@rubyforge.org

  • Added '--clean' to cluster::start to force removal of the pidfile
    before trying to start the cluster member. This is useful for recovering
    from unexpected process death.

Offline

 

#26 2007-02-12 22:45:50

msears
New member
From: Canada
Registered: 2007-01-09
Posts: 22
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Thanks Jason - this is exactly what I am looking for.
I have installed version 0.2.2 of the mongrel_cluster gem but it is not yet recognizing it with the "mongrel_rails cluster::start --clean) command. I know mongrel_cluster is a wrapper for mongrel but I do not know how the two are connected and how to make sure mongrel_rails actually is looking at the updated mongrel_cluster...

Anyone try this, have the faintest idea what I am trying to say? :-)
Thanks in advance.

Offline

 

#27 2007-02-24 22:29:26

rbreve
New member
Registered: 2007-01-30
Posts: 5
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

msears: I think you need to uninstall the old version of mongrel_cluster
mongrel_cluster 1.0.1.1 is out, anyone tried it yet?

Offline

 

#28 2007-02-24 23:07:46

msears
New member
From: Canada
Registered: 2007-01-09
Posts: 22
Website  Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

Nope, but I did fix my problem. Apparently I needed to uninstall the 3 previous gem versions of mongrel_cluster. After I uninstalled all of them except the 0.2.2 everything works. And now there is a new version?? I'll have to take a look, thanks.

Offline

 

#29 2007-02-25 00:07:08

tba
Member
From: Brussels, Belgium
Registered: 2005-10-03
Posts: 91
Expertise

Re: HOWTO: Solaris SMF & Startup Scripts, How to be reboot ready

msears wrote:

Thanks Jason - this is exactly what I am looking for.
I have installed version 0.2.2 of the mongrel_cluster gem but it is not yet recognizing it with the "mongrel_rails cluster::start --clean) command. I know mongrel_cluster is a wrapper for mongrel but I do not know how the two are connected and how to make sure mongrel_rails actually is looking at the updated mongrel_cluster...

Anyone try this, have the faintest idea what I am trying to say? :-)
Thanks in advance.


Hello,

Have you tried to uninstall the old version of mongrel_cluser :

#gem uninstall mongrel_cluster

HTH,
Thomas.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson