| 216 | } |
| 217 | |
| 218 | static void |
| 219 | usage(const char *cmd, int exit_status) |
| 220 | { |
| 221 | FILE *stream; |
| 222 | |
| 223 | stream = exit_status ? stderr : stdout; |
| 224 | |
| 225 | fprintf(stream, "usage: %s [-srkh] [-c configure file]\n", cmd); |
| 226 | /* fprintf(stream, "\t-d\tsets debug level\n"); */ |
| 227 | /* fprintf(stream, "\t-s\tgets daemon status\n"); */ |
| 228 | /* fprintf(stream, "\t-r\trestarts daemon\n"); */ |
| 229 | /* fprintf(stream, "\t-k\tstops daemon\n"); */ |
| 230 | /* fprintf(stream, "\t-h\thelp message\n"); */ |
| 231 | fflush(stream); |
| 232 | |
| 233 | crm_exit(exit_status); |
| 234 | } |
| 235 | |
| 236 | static void |
| 237 | stop_attrd_timer(attr_hash_entry_t * hash_entry) |