Fix Makefile for pmake, document s-s-d options and increase usage gap

This commit is contained in:
Roy Marples 2007-09-26 10:46:44 +00:00
parent 46af0c7ddb
commit 1d0b234e94
3 changed files with 22 additions and 22 deletions

View File

@ -84,7 +84,7 @@ RC_SBINLINKS = mark_service_starting mark_service_inactive \
rc-abort rc-abort
BINLINKS = rc-status BINLINKS = rc-status
SBINLINKS = env-update rc-update runscript start-stop-daemon 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 # We also define _BSD_SOURCE so both Linux and the BSDs get a few
# handy functions which makes our lives a lot easier # handy functions which makes our lives a lot easier

View File

@ -20,7 +20,7 @@ static void usage (int exit_status)
for (i = 0; longopts[i].name; ++i) { for (i = 0; longopts[i].name; ++i) {
int len = printf (" -%c, --%s %s", longopts[i].val, longopts[i].name, int len = printf (" -%c, --%s %s", longopts[i].val, longopts[i].name,
has_arg[longopts[i].has_arg]); has_arg[longopts[i].has_arg]);
while (++len < 25) while (++len < 30)
printf (" "); printf (" ");
puts (longopts_help[i]); puts (longopts_help[i]);
} }

View File

@ -487,26 +487,26 @@ static struct option longopts[] = {
{ NULL, 0, NULL, 0} { NULL, 0, NULL, 0}
}; };
static const char * const longopts_help[] = { 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 longopts_help_COMMON
}; };
#include "_usage.c" #include "_usage.c"