#!/usr/bin/env ruby require 'rubygems' require 'daemons' mypath = File.expand_path(File.dirname(__FILE__)) Daemons.run("#{mypath}/mqtttemp.rb")