| 503 | }; |
| 504 | |
| 505 | static void enable_service(const char *name, int ena) |
| 506 | { |
| 507 | for (size_t i = 0; i < ARRAY_SIZE(daemon_service); i++) { |
| 508 | if (!strcmp(daemon_service[i].name, name)) { |
| 509 | daemon_service[i].enabled = ena; |
| 510 | return; |
| 511 | } |
| 512 | } |
| 513 | die("No such service %s", name); |
| 514 | } |
| 515 | |
| 516 | static void make_service_overridable(const char *name, int ena) |
| 517 | { |