summaryrefslogtreecommitdiff
path: root/bin/tapicero
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tapicero')
-rwxr-xr-xbin/tapicero2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tapicero b/bin/tapicero
index 42030d1..d3a9bf8 100755
--- a/bin/tapicero
+++ b/bin/tapicero
@@ -61,7 +61,7 @@ end
# Start the daemon
#
require 'daemons'
-if ENV["USER"] == "root"
+if Process::Sys.getuid == 0
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