summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorazul <azul@leap.se>2014-06-26 11:38:26 +0200
committerazul <azul@leap.se>2014-06-26 11:38:26 +0200
commit3c431ed42419dd55fc4064133b899cb494278051 (patch)
treed61a3b68eadb94cbd9cdaf8284f84fccba8d2f46 /bin
parent02cd662255e52896445e0ba03455b858776a2b52 (diff)
parenta5ce2d2563ccd56a37b281e549f44bf6f056f1d8 (diff)
Merge pull request #15 from azul/feature/replication
initial take on replication
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tapicero9
1 files changed, 4 insertions, 5 deletions
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