6 #include <sys/termios.h>
10 int main(int argc, char *argv[])
15 int ttyfd = open("/dev/tty", 2, 0);
17 ioctl(ttyfd, TIOCNOTTY, NULL);
22 /* FIXME should make sure stdin/stdout/stderr are open to something */
25 errors_to(ERROR_SYSLOG, NULL);
26 read_config(services, argv[1]);
27 if (strcmp(argv[0], "metad-restart")==0) {
29 open("/dev/null", O_RDONLY);