Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/runit/sv.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/runit/sv.c

    r2725 r3232  
    154154/* TODO: depends on runit_lib.c - review and reduce/eliminate */
    155155
     156//usage:#define sv_trivial_usage
     157//usage:       "[-v] [-w SEC] CMD SERVICE_DIR..."
     158//usage:#define sv_full_usage "\n\n"
     159//usage:       "Control services monitored by runsv supervisor.\n"
     160//usage:       "Commands (only first character is enough):\n"
     161//usage:       "\n"
     162//usage:       "status: query service status\n"
     163//usage:       "up: if service isn't running, start it. If service stops, restart it\n"
     164//usage:       "once: like 'up', but if service stops, don't restart it\n"
     165//usage:       "down: send TERM and CONT signals. If ./run exits, start ./finish\n"
     166//usage:       "    if it exists. After it stops, don't restart service\n"
     167//usage:       "exit: send TERM and CONT signals to service and log service. If they exit,\n"
     168//usage:       "    runsv exits too\n"
     169//usage:       "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n"
     170//usage:       "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service"
     171
    156172#include <sys/poll.h>
    157173#include <sys/file.h>
     
    422438int sv_main(int argc UNUSED_PARAM, char **argv)
    423439{
    424     unsigned opt;
    425440    char *x;
    426441    char *action;
     
    443458
    444459    opt_complementary = "w+:vv"; /* -w N, -v is a counter */
    445     opt = getopt32(argv, "w:v", &waitsec, &verbose);
     460    getopt32(argv, "w:v", &waitsec, &verbose);
    446461    argv += optind;
    447462    action = *argv++;
Note: See TracChangeset for help on using the changeset viewer.