aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/usage.h83
1 files changed, 51 insertions, 32 deletions
diff --git a/include/usage.h b/include/usage.h
index f912d7b88..56198cfa5 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3613,46 +3613,65 @@
3613 USE_GETOPT_LONG("--start|--stop") SKIP_GETOPT_LONG("-S|-K") \ 3613 USE_GETOPT_LONG("--start|--stop") SKIP_GETOPT_LONG("-S|-K") \
3614 "] ... [-- arguments...]" 3614 "] ... [-- arguments...]"
3615#define start_stop_daemon_full_usage "\n\n" \ 3615#define start_stop_daemon_full_usage "\n\n" \
3616 "Start and stop services\n" \ 3616 "Search for matching processes, and then\n" \
3617 "\nOptions:" \ 3617 "-S: stop all matching processes.\n" \
3618 "-K: start a process unless a matching process is found.\n" \
3618 USE_GETOPT_LONG( \ 3619 USE_GETOPT_LONG( \
3619 "\n -S,--start Start" \ 3620 "\nProcess matching:" \
3620 "\n -K,--stop Stop" \ 3621 "\n -u,--user USERNAME|UID Match only this user's processes" \
3621 "\n -a,--startas pathname Start process specified by pathname" \ 3622 "\n -n,--name NAME Match processes with NAME" \
3622 "\n -b,--background Put process into background" \ 3623 "\n in comm field in /proc/PID/stat" \
3623 "\n -u,--user username|uid Stop this user's processes" \ 3624 "\n -x,--exec EXECUTABLE Match processes with this command" \
3624 "\n -x,--exec executable Program to either start or check" \ 3625 "\n in /proc/PID/cmdline" \
3625 "\n -n,--name process-name Stop processes with this name" \ 3626 "\n -p,--pidfile FILE Match a process with PID from the file" \
3626 "\n -p,--pidfile pid-file Save or load pid using a pid-file" \ 3627 "\n All specified conditions must match" \
3627 "\n -m,--make-pidfile Create the -p file and enter pid in it" \ 3628 "\n-K only:" \
3628 "\n -q,--quiet Quiet" \ 3629 "\n -x,--exec EXECUTABLE Program to run" \
3630 "\n -a,--startas NAME Zeroth argument" \
3631 "\n -b,--background Background" \
3629 USE_FEATURE_START_STOP_DAEMON_FANCY( \ 3632 USE_FEATURE_START_STOP_DAEMON_FANCY( \
3630 "\n -o,--oknodo Exit status 0 if nothing done" \ 3633 "\n -N,--nicelevel N Change nice level" \
3631 "\n -v,--verbose Verbose" \
3632 "\n -N,--nicelevel N Add N to process's nice level" \
3633 ) \ 3634 ) \
3634 "\n -s,--signal signal Signal to send (default TERM)" \ 3635 "\n -c,--chuid USER[:[GRP]] Change to user/group" \
3635 "\n -c,--chuid user[:[grp]] Change to specified user/group" \ 3636 "\n -m,--make-pidfile Write PID to the pidfile specified by -p" \
3637 "\n-S only:" \
3638 "\n -s,--signal SIG Signal to send" \
3639 "\n -t,--test Match only, exit with 0 if a process is found" \
3640 "\nOther:" \
3641 USE_FEATURE_START_STOP_DAEMON_FANCY( \
3642 "\n -o,--oknodo Exit with status 0 if nothing is done" \
3643 "\n -q,--quiet Quiet" \
3644 ) \
3645 "\n -v,--verbose Verbose" \
3636 ) \ 3646 ) \
3637 SKIP_GETOPT_LONG( \ 3647 SKIP_GETOPT_LONG( \
3638 "\n -S Start" \ 3648 "\nProcess matching:" \
3639 "\n -K Stop" \ 3649 "\n -u USERNAME|UID Match only this user's processes" \
3640 "\n -a pathname Start process specified by pathname" \ 3650 "\n -n NAME Match processes with NAME" \
3641 "\n -b Put process into background" \ 3651 "\n in comm field in /proc/PID/stat" \
3642 "\n -u username|uid Stop this user's processes" \ 3652 "\n -x EXECUTABLE Match processes with this command" \
3643 "\n -x executable Program to either start or check" \ 3653 "\n command in /proc/PID/cmdline" \
3644 "\n -n process-name Stop processes with this name" \ 3654 "\n -p FILE Match a process with PID from the file" \
3645 "\n -p pid-file Save or load pid using a pid-file" \ 3655 "\n All specified conditions must match" \
3646 "\n -m Create the -p file and enter pid in it" \ 3656 "\n-K only:" \
3647 "\n -q Quiet" \ 3657 "\n -x EXECUTABLE Program to run" \
3658 "\n -a NAME Zeroth argument" \
3659 "\n -b Background" \
3660 USE_FEATURE_START_STOP_DAEMON_FANCY( \
3661 "\n -N N Change nice level" \
3662 ) \
3663 "\n -c USER[:[GRP]] Change to user/group" \
3664 "\n -m Write PID to the pidfile specified by -p" \
3665 "\n-S only:" \
3666 "\n -s SIG Signal to send" \
3667 "\n -t Match only, exit with 0 if a process is found" \
3668 "\nOther:" \
3648 USE_FEATURE_START_STOP_DAEMON_FANCY( \ 3669 USE_FEATURE_START_STOP_DAEMON_FANCY( \
3649 "\n -o Exit status 0 if nothing done" \ 3670 "\n -o Exit with status 0 if nothing is done" \
3671 "\n -q Quiet" \
3672 ) \
3650 "\n -v Verbose" \ 3673 "\n -v Verbose" \
3651 "\n -N N Add N to process's nice level" \
3652 ) \ 3674 ) \
3653 "\n -s signal Signal to send (default TERM)" \
3654 "\n -c user[:[grp]] Change to specified user/group" \
3655 )
3656 3675
3657#define stat_trivial_usage \ 3676#define stat_trivial_usage \
3658 "[OPTION] FILE..." 3677 "[OPTION] FILE..."