Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Print some information when serving files through mongoose
Marin Atanasov Nikolov committed 13 years ago
commit d3186165f52cf328ef6fab08bf960546eafacdda
parent 41cc65577461dd81dbd9af7490c8095c4ac092ae
1 file changed +10 -0
modified plugins/pkg-plugins-serve/plugin/serve.c
@@ -104,8 +104,18 @@ plugin_serve_callback(int argc, char **argv)
	};

	ctx = mg_start(NULL, NULL, options);
+

+
	printf(">>> Server listening on port %s\n", port);
+
	printf(">>> Serving directory %s\n", wwwroot);
+
	printf(">>> In order to stop the server press ENTER ...");
+
	
	getchar(); /* serve until user pressed enter */
+

+
	printf(">>> Shutting down server\n");
+
	
	mg_stop(ctx);

+
	printf(">>> Done\n");
+

	return (EPKG_OK);
}