Fix Makefile for pmake, document s-s-d options and increase usage gap
This commit is contained in:
parent
46af0c7ddb
commit
1d0b234e94
@ -84,7 +84,7 @@ RC_SBINLINKS = mark_service_starting mark_service_inactive \
|
||||
rc-abort
|
||||
BINLINKS = rc-status
|
||||
SBINLINKS = env-update rc-update runscript start-stop-daemon
|
||||
ALL_LINKS = $(sort $(BINLINKS) $(SBINLINKS) $(RC_BINLINKS) $(RC_SBINLINKS))
|
||||
ALL_LINKS = $(BINLINKS) $(SBINLINKS) $(RC_BINLINKS) $(RC_SBINLINKS)
|
||||
|
||||
# We also define _BSD_SOURCE so both Linux and the BSDs get a few
|
||||
# handy functions which makes our lives a lot easier
|
||||
|
@ -20,7 +20,7 @@ static void usage (int exit_status)
|
||||
for (i = 0; longopts[i].name; ++i) {
|
||||
int len = printf (" -%c, --%s %s", longopts[i].val, longopts[i].name,
|
||||
has_arg[longopts[i].has_arg]);
|
||||
while (++len < 25)
|
||||
while (++len < 30)
|
||||
printf (" ");
|
||||
puts (longopts_help[i]);
|
||||
}
|
||||
|
@ -487,26 +487,26 @@ static struct option longopts[] = {
|
||||
{ NULL, 0, NULL, 0}
|
||||
};
|
||||
static const char * const longopts_help[] = {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"Stop daemon",
|
||||
"Set a nicelevel when starting",
|
||||
"Retry schedule to use when stopping",
|
||||
"Start daemon",
|
||||
"deprecated, use --exec",
|
||||
"Force daemon to background",
|
||||
"deprecated, use --user",
|
||||
"Change the PWD",
|
||||
"Change the process group",
|
||||
"Create a pidfile",
|
||||
"Match process name",
|
||||
"deprecated",
|
||||
"Match pid found in this file",
|
||||
"Send a different signal",
|
||||
"Test actions, don't do them",
|
||||
"Change the process user",
|
||||
"Chroot to this directory",
|
||||
"Binary to start/stop",
|
||||
"Redirect stdout to file",
|
||||
"Redirect stderr to file",
|
||||
longopts_help_COMMON
|
||||
};
|
||||
#include "_usage.c"
|
||||
|
Loading…
Reference in New Issue
Block a user