diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 21:13:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 21:13:27 +0800 |
commit | b65cc51f53c0afc171bdfb10d27e58f69cdae60d (patch) | |
tree | 96935b32a13aedb4922cc1bcc7b7630dcb0a4168 /util/bbsctl.c | |
parent | 99290f899e9334d5b2cc9a6714cf7cc589c87aeb (diff) | |
download | pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar.gz pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar.bz2 pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar.lz pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar.xz pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.tar.zst pttbbs-b65cc51f53c0afc171bdfb10d27e58f69cdae60d.zip |
* rollback experimental stuff...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4594 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/bbsctl.c')
-rw-r--r-- | util/bbsctl.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; } |