From b65cc51f53c0afc171bdfb10d27e58f69cdae60d Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 13 Jun 2009 13:13:27 +0000 Subject: * rollback experimental stuff... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4594 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/bbsctl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'util') diff --git a/util/bbsctl.c b/util/bbsctl.c index a881e03e..2cae3dd6 100644 --- a/util/bbsctl.c +++ b/util/bbsctl.c @@ -111,10 +111,12 @@ int startbbs(int argc, char **argv) case BINDPORTS_MODE_NONE: printf("mode is not assigned. fallback to default ports.\n"); break; + case BINDPORTS_MODE_MBBSD: execl(BBSHOME "/bin/mbbsd", "mbbsd", "-d", "-f", bindports_fn, NULL); printf("mbbsd startup failed...\n"); break; + case BINDPORTS_MODE_LOGIND: execl(BBSHOME "/bin/logind", "logind", "-d", "-f", bindports_fn, NULL); printf("logind startup failed...\n"); @@ -128,12 +130,6 @@ int startbbs(int argc, char **argv) "-p3000", "-p3001", "-p3002", "-p3003", "-p3004", "-p3005", "-p3006", "-p3007", "-p3008", "-p3009", "-p3010", NULL); - if (dashs(BBSHOME "/" FN_CONF_BINDPORTS) > 0) - { - // execl(BBSHOME "/bin/mbbsd", "mbbsd", "-d", "-f", FN_CONF_BINDPORTS, NULL); - execl(BBSHOME "/bin/logind", "logind", "-f", BBSHOME "/" FN_CONF_BINDPORTS, NULL); - } else { - } printf("starting daemons failed\n"); return 1; } -- cgit v1.2.3