- dprintf (L_DEBUG, "Calling %s (as %s) to monitor %s", calling, as,
+ dprintf (N_DEBUG, "Calling %s (as %s) to monitor %s", calling, as,
monitoring);
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
monitoring);
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
- log (L_FATAL, "SM_MON request failed, state: %d", result->state);
+ note (N_FATAL, "SM_MON request failed, state: %d", result->state);
- dprintf (L_DEBUG, "SM_MON result successful, state: %d\n", result->state);
- dprintf (L_DEBUG, "Waiting for callback.");
+ dprintf (N_DEBUG, "SM_MON result successful, state: %d\n", result->state);
+ dprintf (N_DEBUG, "Waiting for callback.");
- dprintf (L_DEBUG, "Calling %s (as %s) to unmonitor %s", calling, as,
+ dprintf (N_DEBUG, "Calling %s (as %s) to unmonitor %s", calling, as,
unmonitoring);
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
unmonitoring);
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
die ("%s", clnt_sperror (client, "sm_unmon_1"));
free (mon_id.my_id.my_name);
die ("%s", clnt_sperror (client, "sm_unmon_1"));
free (mon_id.my_id.my_name);
- dprintf (L_DEBUG, "Calling %s (as %s) to unmonitor all hosts", calling, as);
+ dprintf (N_DEBUG, "Calling %s (as %s) to unmonitor all hosts", calling, as);
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
die ("%s", clnt_spcreateerror ("clnt_create"));
if ((client = clnt_create (calling, SM_PROG, SM_VERS, "udp")) == NULL)
die ("%s", clnt_spcreateerror ("clnt_create"));
die ("%s", clnt_sperror (client, "sm_stat_1"));
if (result->res_stat == STAT_SUCC)
die ("%s", clnt_sperror (client, "sm_stat_1"));
if (result->res_stat == STAT_SUCC)
- dprintf (L_DEBUG, "STAT_SUCC from %s for %s, state: %d", calling,
+ dprintf (N_DEBUG, "STAT_SUCC from %s for %s, state: %d", calling,
- dprintf (L_DEBUG, "STAT_FAIL from %s for %s, state: %d", calling,
+ dprintf (N_DEBUG, "STAT_FAIL from %s for %s, state: %d", calling,
- log (L_FATAL, "Simulator caught signal %d, un-registering and exiting.", sig);
+ note (N_FATAL, "Simulator caught signal %d, un-registering and exiting.", sig);
signal (SIGINT, sim_killer);
signal (SIGTERM, sim_killer);
pmap_unset (sim_port, SIM_SM_VERS);
signal (SIGINT, sim_killer);
signal (SIGTERM, sim_killer);
pmap_unset (sim_port, SIM_SM_VERS);
- do_regist (sim_port, sim_sm_prog_1);
-/* do_regist (sim_port, (__dispatch_fn_t)sim_sm_prog_1); */
+ /* this registers both UDP and TCP services */
+ rpc_init("statd", sim_port, SIM_SM_VERS, sim_sm_prog_1, 0);
argp->state, argp->mon_name, argp->priv);
svc_exit ();
return ((void *)&result);
argp->state, argp->mon_name, argp->priv);
svc_exit ();
return ((void *)&result);