From 17e6a95390ce5f5b62d4fc5cbe3a7fde87656bcc Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 23 Jun 2014 15:32:13 +0200 Subject: initial take on replication --- bin/tapicero | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/tapicero b/bin/tapicero index 72f974b..49e73c2 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -61,11 +61,10 @@ end # Start the daemon # require 'daemons' -if ENV["USER"] == "root" - options = {:app_name => 'tapicero', :dir_mode => :system} # this will put the pid file in /var/run -else - options = {:app_name => 'tapicero', :dir_mode => :normal, :dir => '/tmp'} # this will put the pid file in /tmp -end + +# this will put the pid file in /var/run +options = {:app_name => 'tapicero', :dir_mode => :system} + begin Daemons.run("#{BASE_DIR}/lib/tapicero_daemon.rb", options) rescue SystemExit -- cgit v1.2.3