summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-10 15:54:22 -0800
committerelijah <elijah@riseup.net>2014-11-10 15:54:22 -0800
commit9405a5acf470035aed2985f583c9ac386c637ae4 (patch)
tree0892e66e0b5d90d5bc84203722e8808f4c40f58d /bin
parente8bf5ceb913863e8a7e2dd95d503f1eddcaf0dcb (diff)
bugfix: pid file was not created correctly on startup. closes #6338HEADmaster
Diffstat (limited to 'bin')
-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