qnotifier 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/command.rb +2 -13
- data/qnotifier.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/lib/command.rb
CHANGED
|
@@ -164,25 +164,14 @@ module Qnotifier
|
|
|
164
164
|
pid = fork do
|
|
165
165
|
$0 = 'qnotifierd'
|
|
166
166
|
Process.setsid
|
|
167
|
-
Process.uid = 65534 if Process.
|
|
167
|
+
Process.uid = 65534 if Process.uid == 0
|
|
168
168
|
exit if fork
|
|
169
|
-
`echo #{Process.pid} > /var/lib/qnotifier/qnotifer.pid`
|
|
170
|
-
Dir.chdir "/var/lib/qnotifier"
|
|
171
169
|
File.umask 0000
|
|
172
170
|
STDIN.reopen "/dev/null"
|
|
173
171
|
STDOUT.reopen "/dev/null", "a"
|
|
174
172
|
STDERR.reopen STDOUT
|
|
175
173
|
trap("TERM") {daemon.stop; exit}
|
|
176
|
-
|
|
177
|
-
cpid = fork do
|
|
178
|
-
$0 = 'qnotifier-runner'
|
|
179
|
-
`touch /tmp/running-#{Process.pid}`
|
|
180
|
-
qnotifier = Qnotifier::MainProcess.new
|
|
181
|
-
qnotifier.run
|
|
182
|
-
end
|
|
183
|
-
Process.detach cpid
|
|
184
|
-
sleep 30
|
|
185
|
-
end
|
|
174
|
+
exec "#{File.dirname(__FILE__) }/qnotifierd"
|
|
186
175
|
end
|
|
187
176
|
Process.detach pid
|
|
188
177
|
end
|
data/qnotifier.gemspec
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|