Andrew Bettison
881576212c
Fix all trivial compiler warnings
2012-05-10 18:08:59 +09:30
Andrew Bettison
0fa40973ec
Make 'start' command call setpgrp() when detaching
2012-05-10 12:46:40 +09:30
Andrew Bettison
da9fe6fdca
Fix 'start' command bug when invoked via JNI
...
Child process was using return not exit(), which was unrolling the
JNI call stack in a sub-process and causing havoc.
2012-05-08 16:35:14 +09:30
Andrew Bettison
8dd9a70852
Fix 'stop' command
...
Do not fail with error if servald.pid is nonexistent/inaccessible
2012-05-08 14:53:34 +09:30
gardners
596b20b5e8
interactive servald monitor cli command implemented.
2012-05-08 14:41:21 +09:30
Andrew Bettison
391e8d7056
Fix broken stopfile logic
...
'start' command removes stopfile just before starting
'stop' command removes stopfile after stopping
2012-05-08 12:53:59 +09:30
Andrew Bettison
329189ec8c
Fix bodgy server start/stop logic
...
Rename pidfile 'serval.pid' to 'servald.pid'
Rename stopfile 'doshutdown' to 'servald.stop'
Reinstate checking of stopfile on signals and in main loops
Correct delay loops in 'start' and 'stop' commands
Move some code from commandline.c to server.c
2012-05-08 12:19:52 +09:30
Andrew Bettison
6376baf8b8
Follow-up fixes to serval.pid clobber termination
2012-05-08 11:27:07 +09:30
Andrew Bettison
acc5e48f4f
Terminate server process if serval.pid clobbered
2012-05-08 11:23:43 +09:30
Andrew Bettison
27f2d00d5e
Minor code refactor
2012-05-07 19:14:53 +09:30
Andrew Bettison
09f8434a21
Improve "start" command
...
Add "start exec <exec path>" variants for background mode
Add background startup wait logic, so that pid can be reported to caller
2012-05-07 19:14:52 +09:30
gardners
171eb75d48
fixed packet size calculation bug.
2012-05-07 16:50:49 +09:30
gardners
98607360f4
attempt at fixing wrong number in peerlist display bug in "node info"
...
command.
2012-05-07 15:29:31 +09:30
Andrew Bettison
cbc367b1f5
Rewrite server start/status/stop commands
...
Now correctly probes for server process existence using kill(pid, 0)
Status command does not dump config (use "config get" instead)
Output uses JNI cli output fields
Stop command uses 5 Hz wakeup, not busy wait while server exits
2012-05-07 13:49:38 +09:30
Andrew Bettison
97884ba069
Fix bug in output from "rhizome add file"
...
When a duplicate is detected, the 'manifestid' field must contain the public
key of the existing manifest.
2012-05-04 15:59:58 +09:30
Andrew Bettison
f31c326871
CLI output from "rhizome add file", with tests
2012-05-04 15:31:03 +09:30
Andrew Bettison
eab6dafcc7
Make commandline.c error messages appear on Android log
2012-05-03 14:50:14 +09:30
Andrew Bettison
5b85520f75
Fix JNI command-line interface; return 255 instead of -1
2012-05-03 12:17:49 +09:30
gardners
f3d288b10e
fixed accidental typo.
2012-05-03 11:36:44 +09:30
gardners
03bfa6e0c7
removed dna resolution poll failure error messages.
2012-05-03 11:25:27 +09:30
Andrew Bettison
7ba15ccdd7
Add "rhizome extract file" command with tests
2012-05-02 17:57:35 +09:30
Andrew Bettison
6e959fd34c
More tests for "rhizome extract manifest"
...
Proper handling of unknown and invalid manifest IDs
2012-05-02 16:24:27 +09:30
Andrew Bettison
146eb7cdfd
Add "rhizome extract manifest" command
2012-05-02 16:03:09 +09:30
gardners
6464ae8100
"dna lookup" now displays name
2012-05-01 14:42:15 +09:30
gardners
14e4af6392
DNA replies now include name. "set did" now accepts name.
...
Keyring now stores name. "node info resolvedid" now returns name.
2012-05-01 14:38:09 +09:30
gardners
4234cb3ed5
changed bcmp to memcmp
2012-05-01 13:41:22 +09:30
gardners
92192654d0
cli_puts()ify "dna lookup". Add duplicate suppression to dna lookup
2012-05-01 13:39:43 +09:30
gardners
44d0feb575
improved "stop" functionality to better realise when a process
...
is no longer running.
2012-05-01 07:05:02 +09:30
gardners
590b53975c
added some more debugging for finding out why numbers wont resolve
...
from servald in java interface.
2012-04-30 21:06:40 +09:30
gardners
cfe5f303e7
added cleaning up of client socket when ending command line
...
execution so that multiple calls from java can succeed.
2012-04-30 20:07:22 +09:30
Andrew Bettison
7e7ab30808
Refactor JNI command-line interface
...
Does not depend on ServalDResult class - appends output fields to a supplied
list instead, and returns the integer status
Does not depend on ServalDReentranceError class - uses
java.lang.IllegalStateException instead
2012-04-30 17:45:24 +09:30
gardners
e38854d4c0
improved "stop" command to try several times.
2012-04-30 15:34:41 +09:30
gardners
808ef53d0f
"node info" command can now do DNA lookups to get phone #
2012-04-30 15:12:31 +09:30
gardners
1ebe63a470
cleaned up some debug output introduced during previous bug fixes.
2012-04-30 06:25:54 +09:30
gardners
c3fe7ee8e3
"id peers" now returns something!
2012-04-30 06:16:03 +09:30
gardners
6fad530b28
fixed some bugs with node info and set sid
2012-04-27 14:17:41 +09:30
gardners
47f15bf259
converted node info to return each record as a set of strings to
...
make it easier to parse from Java.
2012-04-27 08:27:55 +09:30
gardners
ef6f2ef3d3
cleaned up id_self() output.
2012-04-27 07:17:50 +09:30
gardners
7f11e25922
added count to id self/list output to help debug calls from JNI
...
in batphone.
2012-04-27 05:58:31 +09:30
gardners
89c08fa2c3
improved diagnostics for incorrect command line invokations.
...
Fixed bug in servalwrap (needed to trim arg[0])
2012-04-26 16:59:55 +09:30
Andrew Bettison
18eb83ebf4
JNI-ify "keyring list" output
2012-04-26 15:54:40 +09:30
gardners
38c240be58
using cli_delim() where appropriate. more work on "id self" /
...
"id list".
2012-04-26 15:47:05 +09:30
gardners
88ba56b68b
work towards "node info" command, and renamed stop/start etc to
...
drop node keyword, that in retrospect is not appropriate.
2012-04-26 07:14:01 +09:30
gardners
d56780852c
added "id peers" with maximum reuse of "id self".
2012-04-26 06:06:04 +09:30
gardners
35f231dcb0
preparation for allowing MDP_GETADDRS to return either local IDs,
...
or SIDs of peers.
2012-04-26 05:58:16 +09:30
gardners
cf2216fecf
"id self" now correctly does multi-packet lists for when we have
...
lots of identities.
2012-04-26 05:54:54 +09:30
gardners
44a416b969
added "id self" command to get all local SIDs (BatPhone needs this)
2012-04-26 05:48:06 +09:30
gardners
98c3b72cf4
mdp based dna lookup works now, but lacks duplicate suppression.
2012-04-25 20:33:25 +09:30
gardners
a2880ada1e
closer to dna lookup working via mdp.
...
Bug to be fixed in sending replies.
2012-04-25 20:14:56 +09:30
gardners
4972da1b58
dna lookup via mdp nearly working.
2012-04-25 15:55:04 +09:30