|
2011-05-24
, 09:38
|
Posts: 214 |
Thanked: 140 times |
Joined on Aug 2010
|
#132
|
Short answer:
Makes perfect sense in my opinion, this is how I would expect it to work and I bet everyone already has it configured this way.
I would go with mode b).
Long answer:
There are two separate cases in mode b):
- If you don't have the background daemon running, you are probably starting the main program in order to update your position and to see the map/check in - daemon should be on while the main program is running.
My humble (and possibly too laborious) suggestion is:
Keep the background daemon and the main program daemon separate from each other. When the user starts the main program, you could suspend the background daemon until the main program is closed. The settings should be separate as well, as the use cases for using the background daemon and running the main program are typically rather different.
|
2011-05-24
, 10:12
|
Posts: 13 |
Thanked: 1 time |
Joined on Feb 2010
|
#133
|
|
2011-05-24
, 10:25
|
Posts: 214 |
Thanked: 140 times |
Joined on Aug 2010
|
#134
|
Program is started from menu icon, not command line.
Same issue with versions: 0.9.4-36 & 0.9.4-37.
ps -a | grep "zaploc-daemon"
The Following User Says Thank You to MasterZap For This Useful Post: | ||
|
2011-05-24
, 11:19
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#135
|
That's odd. Doesn't happen here. Do you have the updated busybox, by any chance?
What does this line print for you:
Code:ps -a | grep "zaploc-daemon"
EDIT: Try build 0.9.4-39.
/Z
~ $ ps -w|grep "zaploc-daemon" 3815 user 50968 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 3951 user 50820 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 4066 user 50824 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 4130 user 2832 S grep zaploc-daemon
|
2011-05-24
, 11:27
|
Posts: 214 |
Thanked: 140 times |
Joined on Aug 2010
|
#136
|
Using 0.9.4-39.
If background service is OFF, then it shutdown OK (no ghost program running in backgroung)
If background service is ON, then
Above is after 3rd time closing ZapLoc. Each time a new daemon is added.Code:~ $ ps -w|grep "zaploc-daemon" 3815 user 50968 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 3951 user 50820 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 4066 user 50824 S /usr/bin/python /opt/zaploc/zaploc-daemon.py -d 4130 user 2832 S grep zaploc-daemon
ps -a | grep "python.*zaploc-daemon.py" | grep -v grep | awk '{print $1}'
The Following User Says Thank You to MasterZap For This Useful Post: | ||
|
2011-05-24
, 11:37
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#137
|
Other people have had the same issue w. new busybox, but it was due to a wrong "ps -e | grep" line I used (-e not a proper option in new busybox, and it was wrong anyway, was supposed to be -a)
However, that should have been fixed in 39... :/ Strange.
What's "-w", I wonder? "-a" (all users) is what I would have expected to use....?
If you start ZapLoc from xterm and see what it prints ("Starting Daemon", "Stopping Daemon" etc. like that) would be helpful. Ideally run as "user", not "root".
/Z
~ $ ps --help BusyBox v1.18.4 (Debian 1.18.4power4) multi-call binary. Usage: ps Show list of processes Options: w Wide output
|
2011-05-24
, 11:51
|
|
Posts: 2,050 |
Thanked: 1,425 times |
Joined on Dec 2009
@ Bucharest
|
#138
|
|
2011-05-24
, 13:48
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#139
|
|
2011-05-24
, 13:51
|
Posts: 214 |
Thanked: 140 times |
Joined on Aug 2010
|
#140
|
Same issue with versions: 0.9.4-36 & 0.9.4-37.
Last edited by Gusse; 2011-05-24 at 09:58.