FOSSology
4.7.1
Open Source License Compliance by Open Source Software
usage.c
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: © 2013 Hewlett-Packard Development Company, L.P.
3
SPDX-FileCopyrightText: © 2019 Siemens AG
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
12
#include "maintagent.h"
13
18
FUNCTION
void
usage
(
char
*name)
19
{
20
printf(
"Usage: %s [options]\n"
, name);
21
printf(
" -a :: Run all non slow maintenance operations.\n"
);
22
printf(
" -A :: Run all maintenance operations.\n"
);
23
printf(
" -D :: Vacuum Analyze the database.\n"
);
24
printf(
" -F :: Validate folder contents.\n"
);
25
printf(
" -g :: Delete orphan gold files.\n"
);
26
printf(
" -o # :: Remove older gold files from repository older than # in YYYY-MM-DD.\n"
);
27
printf(
" -h :: Print help (usage).\n"
);
28
printf(
" -l # :: Remove log files from file system older than # in YYYY-MM-DD.\n"
);
29
printf(
" -L :: Remove orphaned logs from file system.\n"
);
30
printf(
" -N :: Normalize the (internal) priority numbers.\n"
);
31
printf(
" -p :: Verify file permissions (report only) (not implemented).\n"
);
32
printf(
" -P :: Verify and fix file permissions (not implemented).\n"
);
33
printf(
" -R :: Remove uploads with no pfiles.\n"
);
34
printf(
" -t # :: Remove personal access tokens expired # days ago.\n"
);
35
printf(
" -T :: Remove orphaned temp tables.\n"
);
36
printf(
" -U :: Process expired uploads (slow) (not implemented).\n"
);
37
printf(
" -Z :: Remove orphaned files from the repository (slow).\n"
);
38
printf(
" -E :: Remove orphaned rows from database (slow).\n"
);
39
printf(
" -i :: Initialize the database, then exit.\n"
);
40
printf(
" -I :: Reindexing of database (This activity may take 5-10 mins. Execute only when system is not in use).\n"
);
41
printf(
" -v :: verbose (repeatable; use multiple -v for increased verbosity, e.g. -vv)\n"
);
42
printf(
" -V :: print the version info, then exit.\n"
);
43
printf(
" -c SYSCONFDIR :: Specify the directory for the system configuration. \n"
);
44
}
/* Usage() */
usage
FUNCTION void usage(char *name)
Print usage message to user.
Definition:
usage.c:18
src
maintagent
agent
usage.c
Generated on Mon Jul 6 2026 11:07:50 for FOSSology by
1.9.1