|
|
|
@ -39,6 +39,8 @@ int main( int argc, char* argv[], char* envp[] )
|
|
|
|
|
if( g_server->section == -1 ) {
|
|
|
|
|
printf( "Starting Apogee ActivityPub server...\n" );
|
|
|
|
|
printf( "Using port %d for web server\n", g_server->http_settings.bind_port );
|
|
|
|
|
|
|
|
|
|
// Tor
|
|
|
|
|
process_start_section(6);
|
|
|
|
|
|
|
|
|
|
// Make sure we have a hidden service hostname
|
|
|
|
@ -48,10 +50,21 @@ int main( int argc, char* argv[], char* envp[] )
|
|
|
|
|
} else {
|
|
|
|
|
fclose(f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Web servers
|
|
|
|
|
process_start_section(0);
|
|
|
|
|
process_start_section(0);
|
|
|
|
|
process_start_section(0);
|
|
|
|
|
|
|
|
|
|
// Inbox
|
|
|
|
|
process_start_section(1);
|
|
|
|
|
|
|
|
|
|
// Outbox
|
|
|
|
|
process_start_section(2);
|
|
|
|
|
|
|
|
|
|
// Fetch
|
|
|
|
|
process_start_section(5);
|
|
|
|
|
|
|
|
|
|
process_wait_for_finished();
|
|
|
|
|
printf( "Apogee server shutting down...\n" );
|
|
|
|
|
code = EXIT_SUCCESS;
|
|
|
|
|