badvpn/ncd/examples/onoff_server_test.ncd
2013-04-23 13:16:08 +00:00

21 lines
431 B
Plaintext

include "onoff_server.ncdi"
process main {
call("onoff_server_main", {"/home/ambro/onoff.socket"}) onoff_server;
process_manager() mgr;
mgr->start("service1", {});
#mgr->start("service2", {});
}
template service1 {
alias("_caller") main;
call("onoff_server_onoff", {"_caller.main.onoff_server", "ServiceId1", "true"});
println("service1 up");
rprintln("service1 down");
# Do your stuff.
}