Solo Web Startup

A solo entrepreneur's 1st startup

  • @Refynr
  • My startup: Refynr.com
  • Me on LinkedIn
    • 5
      19 Apr 2010

      Auto-start Multiple CF instances on Linux

      • Edit
      • Delete
      • Tags
      • Autopost
      Want your ColdFusion 9 Enterprise multiple instances on Linux to automatically start?  Out of the box, it seems CF 8 & 9 are not set up to do this automatically. 

      1) the permissions were wrong. Even though I installed CF to be run as "nobody", some aspects need root access, so the "RUNTIME_USER" may need to be root or have root permissions. This is a little over my head, but suffice to say it didn't run CF instances properly as "nobody", but was fine with "root".

      2) as you add new CF instances, the script (at /etc/init.d/coldfusion9multi on RedHat) doesn't get updated for you. You must manually add the new instances to the script after you add the instances in the CF Administrator.  

      Here's my /etc/init.d/coldfusion9multi script, which also shows how to auto-start Verity and SOLR at the same time.  Hope it helps.

      #!/bin/sh

      # chkconfig: 345 90 14

      #
      # Start ColdFusion 9 Multiserver instances + search services
      #
      # Because this is a start up script, and will be run by root, we use root
      # user to run these services

      CF_DIR="/data/jrun4"
      #RUNTIME_USER=""nobody""
      RUNTIME_USER=""root""

      # 1.0/Initial
      #
      ##

      if [ ${1:-noset} = "stop" ]; then
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_01"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_02"
        su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfinstance_tasks01"
        su $RUNTIME_USER -c "$CF_DIR/verity/bin/cfsearch stop"
        su $RUNTIME_USER -c "$CF_DIR/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr/cfsolr stop"
        exit 0
      fi

      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion >& $CF_DIR/logs/cfusion-event.log &"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_01"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_02"
      su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start -nohup -childVM cfinstance_tasks01"
      su $RUNTIME_USER -c "$CF_DIR/verity/bin/cfsearch start"
      su $RUNTIME_USER -c "$CF_DIR/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr/cfsolr start"


      Aaron Longnion
      Director of Internet Technology
      www.PeopleXS.com
      www.Twitter.com/aqlong
      www.peoplexs.com/communities/nl/

      • views
      • Tweet
    • 1
      3 Dec 2009

      ColdFusion Probe to test if Verity is running

      • Edit
      • Delete
      • Tags
      • Autopost

      Ever have Verity crash on your 24x7 website, but the only way you find
      it's down is when someone complains or you see it in your error
      logs/emails?

      Want to be more proactive? Set up a Probe from ColdFusion to point to
      this file (VerityProbe.cfm) on the physical server where Verity runs.
      If there are multiple CF instances, they all share the same Verity
      process, per physical server. Set you CF Probe in the CF Admin such
      that it emails your IT team (or whomever is responsible for keeping
      your system running). Then, they can go start/restart Verity right
      away.

      • views
      • Tweet
    • Search

    • Sites I Like

      • Sean Corfield's blog
      • Filter Twitter & Facebook w/ Refynr
      • Raymond Camden's ColdFusion Blog
      • Aaron West's Blog
      • Ben Nadel's blog
      • A Smart Bear blog
      • IttyBiz blog
      • Charlie Arehart ColdFusion Consulting
    • Tags

      • refynr
      • ColdFusion
      • startup
      • Twitter
      • entrepreneur
      • social media
      • facebook
      • railo
      • Jobs
      • cloud computing
      • mysql
      • programming
      • social networks
      • legacy code
      • cfml
      • jquery
      • marketing
      • video
      • Developer
      • Holland
      • design
      • logo
      • rackspace
      • LinkedIn
      • Subversion
      • crowdsource
      • googleplus
      • linux
      • security
      • sql
      • Peoplexs
      • SEO
      • adobe
      • conferences
      • openbd
      • radio
      • redhat
      • regex
      • Balsamiq
      • Ben Forta
      • CFBuilder
      • CFUG
      • Napkee
      • SOLR
      • SOTR
      • air
      • android
      • austin
      • beta
      • blog
      • bufferapp
      • centos
      • cfeclipse
      • chrome
      • clustering
      • css
      • curation
      • customer service
      • database
      • dutch
      • feedback
      • filter
      • filtering
      • funding
      • git
      • gmail
      • google
      • humor
      • i18N
      • iphone
      • jQM
      • java
      • jrun
      • json
      • microsoft
      • mobile
      • movies
      • mxunit
      • nosql
      • ocfs
      • open office
      • pitch
      • public speaking
      • rhel
      • scalability
      • sql server
      • svn
      • ui
      • unit testing
      • ux
      • web
      • webapp
      • website
      • websockets
      • windows
      • work
      • youtube
    • Archive

      • 2012 (6)
        • February (4)
        • January (2)
      • 2011 (57)
        • September (2)
        • August (1)
        • July (4)
        • June (3)
        • May (9)
        • April (5)
        • March (14)
        • February (8)
        • January (11)
      • 2010 (66)
        • December (13)
        • November (11)
        • October (7)
        • September (8)
        • August (5)
        • July (2)
        • June (2)
        • May (2)
        • April (7)
        • March (3)
        • February (1)
        • January (5)
      • 2009 (21)
        • December (7)
        • November (5)
        • October (3)
        • September (5)
        • August (1)
    • Obox Design
  • Solo Web Startup

    Web developer/architect turned solo web entrepreneur

    324925 Views
  • Get Updates

    Subscribe via RSS
    TwitterTwitterFacebookPageFacebookLinkedInFriendfeedDelicious