Given a service name(created by user) and its path, how can I load and start the service at runtime from a C++ program in Ubuntu.Does there exists functions similar to the Windows functions such as  CreateService, OpenSCManager, OpenService, etc. for doing this?
Load a service in Linux programatically
linux;ubuntu;services;c++
I have found something similar. A simple watchdog program which runs a service by exec function. You can find it here.