Skip to content

Instantly share code, notes, and snippets.

@gabrielschulhof
Created February 22, 2016 17:15
Show Gist options
  • Save gabrielschulhof/7d79a3c8a17674212323 to your computer and use it in GitHub Desktop.
Save gabrielschulhof/7d79a3c8a17674212323 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <sol-mainloop.h>
#include <sol-platform.h>
void startup() {
printf( "%d\n", sol_platform_get_service_state("sshd"));
sol_quit();
}
void shutdown(){}
SOL_MAIN_DEFAULT(startup, shutdown);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment