I am doing a project on service management in linux using C language.
It involves listing out services available in the system and controlling of the service by starting,stopping and restarting of the services.
I know accessing the services using the "service" command.
But I am in need of a programmatic approach for accessing and controlling of the services using the system calls.
Please give me suggestions and if possible sample code.
Please reply me soon.