Runit version 2.0.0 - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    version 2.0.0

      View the most recent changes for the runit port at: runit.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for runit.
      The raw portfile for runit 2.0.0 is located here:
      http://runit.darwinports.com/dports/sysutils/runit/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/runit


      The runit Portfile 50984 2009-05-14 21:08:43Z and.damore macports.org $

      PortSystem 1.0

      Name: runit
      Version: 2.0.0
      Category: sysutils
      Platform: darwin
      Maintainers: sanityinc.com:macports
      Description: collection of tools for managing UNIX services
      Long Description: runit is a cross-platform Unix init scheme with service supervision, fashioned after daemontools. It includes tools for starting, restarting, stopping, monitoring and logging any services that you might wish to run.

      Homepage: http://smarden.org/runit/
      Master Sites: http://smarden.org/runit/
      Checksums: ${distname}.tar.gz md5 63c53d313736f444a53a7451bfa76991
      worksrcdir admin/${worksrcdir}
      use_configure no

      build.cmd package/compile
      build.target

      pre-build {
      system "cd ${worksrcpath} && echo 'cc -Xlinker -x' >src/conf-ld"
      reinplace "s| -static||g" ${worksrcpath}/src/Makefile
      # Force use of select() rather than broken poll()
      file copy -force ${worksrcpath}/src/iopause.h1 ${worksrcpath}/src/iopause.h2
      }
      post-build {
      system "cd ${workpath}/${worksrcdir}/man && gzip *.8"
      }

      startupitem.create yes
      startupitem.name ${name}
      startupitem.executable sh -c "PATH=\"${prefix}/sbin:${prefix}/bin:\$PATH\" exec '${prefix}/sbin/runsvdir' '${prefix}/var/service' 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'"

      destroot {
      xinstall -m 755 -s -W ${worksrcpath}/command runsv runsvdir sv svlogd utmpset chpst runsvchdir ${destroot}${prefix}/sbin
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath}/doc benefits.html chpst.8.html dependencies.html faq.html index.html install.html replaceinit.html runit-init.8.html runit.8.html runlevels.html runscripts.html runsv.8.html runsvchdir.8.html runsvdir.8.html sv.8.html svlogd.8.html upgrade.html usedietlibc.html useinit.html utmpset.8.html ${destroot}${prefix}/share/doc/${name}

      xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
      xinstall -m 644 -W ${worksrcpath}/man chpst.8.gz runit-init.8.gz runit.8.gz runsv.8.gz runsvchdir.8.gz runsvdir.8.gz sv.8.gz svlogd.8.gz utmpset.8.gz ${destroot}${prefix}/share/man/man8
      }

      post-install {
      ui_msg "\nCreate ${prefix}/var/service, then add service subdirectories as required; the startup item will then supervise these services by default."
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/runit
      % sudo port install runit
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching runit
      ---> Verifying checksum for runit
      ---> Extracting runit
      ---> Configuring runit
      ---> Building runit with target all
      ---> Staging runit into destroot
      ---> Installing runit
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using runit with these commands:
      %  man runit
      % apropos runit
      % which runit
      % locate runit

     Where to find more information:

    Darwin Ports



    Lightbox this page.