X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=appimage%2Fctdlvisor.c;h=7bcf5efbd29d50bf5206237496d0d7677d851cfd;hp=3884f7072b614086ba8f7e2bcf9ce0da9e4e9cd8;hb=6f1e0c89501aa95ff55e83ebfca511fdd1ead0ca;hpb=fcc3e1f2fbb486769d536b4029c60e17ab1e43fe diff --git a/appimage/ctdlvisor.c b/appimage/ctdlvisor.c index 3884f7072..7bcf5efbd 100644 --- a/appimage/ctdlvisor.c +++ b/appimage/ctdlvisor.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include void main_loop(void); void run_in_foreground(void); @@ -152,7 +154,11 @@ pid_t start_webcits() { static char *usage = "ctdlvisor: usage: ctdlvisor [-h data_directory] [-p http_port] [-s https_port] command\n" - " 'command' must be one of: run, install, start, stop\n" + " 'command' must be one of:\n" + " run - start Citadel services in the foreground without detaching\n" + " install - deploy systemd unit files for automatic startup at boot\n" + " upgrade - check for new version of the software\n" + " test - check this appimage for compatibility with your system\n" ; int main(int argc, char **argv) { @@ -182,6 +188,15 @@ int main(int argc, char **argv) { if (!strcasecmp(argv[optind], "run")) { run_in_foreground(); } + else if (!strcasecmp(argv[optind], "install")) { + fprintf(stderr, "oops, this is not implemented yet\n"); + } + else if (!strcasecmp(argv[optind], "upgrade")) { + fprintf(stderr, "oops, this is not implemented yet\n"); + } + else if (!strcasecmp(argv[optind], "test")) { + fprintf(stderr, "oops, this is not implemented yet\n"); + } else { fprintf(stderr, "%s", usage); exit(1);