smallnet/sendhup.cpp

14 lines
270 B
C++
Raw Normal View History

2015-11-06 15:57:15 -05:00
#include <iostream>
#include <sstream>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2)
return 0;
std::ostringstream s;
s << "pkill -HUP " << argv[1];
//system("/etc/init.d/freeradius reload");
system(s.str().c_str());
}