diff options
author | Azul <azul@riseup.net> | 2014-06-23 15:32:13 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-06-23 15:33:11 +0200 |
commit | 17e6a95390ce5f5b62d4fc5cbe3a7fde87656bcc (patch) | |
tree | ff8ee09b75b5855909e72d4b2aa24c4c203ad363 /bin | |
parent | 02cd662255e52896445e0ba03455b858776a2b52 (diff) |
initial take on replication
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tapicero | 9 |
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 |