#include "Stroika/Frameworks/StroikaPreComp.h"#include <cstdlib>#include <iostream>#include "Stroika/Foundation/Characters/ToString.h"#include "Stroika/Foundation/Debug/Fatal.h"#include "Stroika/Foundation/Debug/Visualizations.h"#include "Stroika/Foundation/Execution/CommandLine.h"#include "Stroika/Foundation/Execution/Finally.h"#include "Stroika/Foundation/Execution/SignalHandlers.h"#include "Stroika/Foundation/Execution/Thread.h"#include "Stroika/Foundation/IO/FileSystem/FileOutputStream.h"#include "Stroika/Frameworks/Service/Main.h"#include "AppVersion.h"#include "Service.h"#include "Stroika/Foundation/Debug/BackTrace.h"#include "Stroika/Foundation/Execution/Logger.h"Go to the source code of this file.
SAMPLE CODE
Sample Simple Service Application
This sample demonstrates a few Stroika features.
o Creating a service application (one that can be automatically started/stopped by
the OS, and one where you can query the status, check process ID, etc)
o Simple example of command line processing
o Simple example of Logging (to syslog or windows log or other)
Definition in file Samples/Service/Sources/Main.cpp.