27 #include <sys/types.h>
32 using namespace Data_Structure;
36 if (application->getPid() > 0)
38 std::cout <<
"Stopping application " << application->getName() << std::endl;
39 ::kill(application->getPid(), 15);
43 std::cout <<
"Application " << application->getName() <<
" is not running" << std::endl;
49 if (application->getPid() > 0)
51 std::cout <<
"Killing application " << application->getName() << std::endl;
52 ::kill(application->getPid(), 9);
56 std::cout <<
"Application " << application->getName() <<
" is not running" << std::endl;