#7273 ensure /var/run/allura is created on allura-vm.a.o

unreleased
closed
nobody
General
nobody
2015-04-20
2014-03-14
Dave Brondsema
No

After a reboot /var/run/allura wasn't there, which is needed by mod_wsgi and reactor/taskd scripts. I manually did:

root@allura-vm:/var/run# mkdir allura
root@allura-vm:/var/run# chgrp allura allura
root@allura-vm:/var/run# chmod g+w allura

And then work with INFRA to get this into the puppet config for this host. (Probably some other things we should get in there too)

Discussion

  • Dave Brondsema
    Dave Brondsema
    2014-04-22

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,7 +3,6 @@
    

    root@allura-vm:/var/run# mkdir allura
    root@allura-vm:/var/run# chgrp allura allura
    -root@allura-vm:/var/run# chmod g+w allura

    -The group ownership might not be necessary, we should test. And then work with INFRA to get this into the puppet config for this host. (Probably some other things we should get in there too)
    +And then work with INFRA to get this into the puppet config for this host. (Probably some other things we should get in there too)

     
  • Dave Brondsema
    Dave Brondsema
    2014-04-22

    Also, this - or something much better:

    cd /var/local/solr-4.2.1/example
    nohup java -jar start.jar >> /var/local/log/solr.log &
    
     
  • Dave Brondsema
    Dave Brondsema
    2014-04-25

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,6 +3,7 @@
    

    root@allura-vm:/var/run# mkdir allura
    root@allura-vm:/var/run# chgrp allura allura
    +root@allura-vm:/var/run# chmod g+w allura

    And then work with INFRA to get this into the puppet config for this host. (Probably some other things we should get in there too)

     
  • Dave Brondsema
    Dave Brondsema
    2015-04-18

    • labels: asf --> asf, sf-current, sf-2
    • status: open --> closed
     
  • Dave Brondsema
    Dave Brondsema
    2015-04-18

    This is kind of ugly, but it works and is good enough for now until we get docker-ized and use that.

    Added to /etc/default/apache2 and the start portion of /etc/init.d/reactor:

    mkdir -p /var/run/allura
    chgrp allura /var/run/allura
    chmod g+w /var/run/allura
    

    And the following into /etc/init.d/reactor after the if [ -n "$1" ]; then block.

    # hack to run solr too
    if ! pgrep -fl java.*start.jar; then
        echo "no solr running yet, starting it"
        pushd /var/local/solr-4.2.1/example
          nohup java -jar start.jar >> /var/local/log/solr.log &
        popd
    fi
    

    And ran:

    update-rc.d reactor defaults
    
     
  • Dave Brondsema
    Dave Brondsema
    2015-04-20

    • labels: asf, sf-current, sf-2 --> asf, sf-2