execv(av[0], av);
fprintf(stderr, "%s: failed to run %s\n", name_p, av[0]);
exit(2);
execv(av[0], av);
fprintf(stderr, "%s: failed to run %s\n", name_p, av[0]);
exit(2);
- if (run_mode & MODE_NOTIFY_ONLY)
+ if (run_mode & MODE_NOTIFY_ONLY) {
+ fprintf(stderr, "%s: -N deprecated, consider using /usr/sbin/sm-notify directly\n",
+ name_p);
/* this registers both UDP and TCP services */
rpc_init("statd", SM_PROG, SM_VERS, sm_prog_1, port);
/* this registers both UDP and TCP services */
rpc_init("statd", SM_PROG, SM_VERS, sm_prog_1, port);
/*
* Handle incoming requests: SM_NOTIFY socket requests, as
* well as callbacks from lockd.
/*
* Handle incoming requests: SM_NOTIFY socket requests, as
* well as callbacks from lockd.