Code: Alles auswählen
--- sectionsdcontrol_v1.6.cpp 2008-11-25 08:23:44.703142000 +0100
+++ sectionsdcontrol.cpp 2008-11-25 08:33:09.124740400 +0100
@@ -36,6 +36,7 @@
printf(" sectionsdcontrol --freemem unloads all events\n");
printf(" sectionsdcontrol --restart restart sectionsd\n");
printf(" sectionsdcontrol --ping ping sectionsd\n");
+ printf(" sectionsdcontrol --rn register neutrino\n");
}
int main(int argc, char** argv)
@@ -95,7 +96,14 @@
client.Restart();
}
else if (!strcmp(argv[i], "--ping"))
+ {
printf("sectionsd %s\n", client.ping() ? "running" : "dead");
+ }
+ else if (!strcmp(argv[i], "--rn"))
+ {
+ printf("registering neutrino\n");
+ client.RegisterNeutrino();
+ }
}
return 0;