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/miscutils/watchdog.c

    r2725 r3232  
    99 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    1010 */
     11
     12//usage:#define watchdog_trivial_usage
     13//usage:       "[-t N[ms]] [-T N[ms]] [-F] DEV"
     14//usage:#define watchdog_full_usage "\n\n"
     15//usage:       "Periodically write to watchdog device DEV\n"
     16//usage:     "\n    -T N    Reboot after N seconds if not reset (default 60)"
     17//usage:     "\n    -t N    Reset every N seconds (default 30)"
     18//usage:     "\n    -F  Run in foreground"
     19//usage:     "\n"
     20//usage:     "\nUse 500ms to specify period in milliseconds"
    1121
    1222#include "libbb.h"
     
    2232    static const char V = 'V';
    2333
     34    remove_pidfile(CONFIG_PID_FILE_PATH "/watchdog.pid");
    2435    write(3, &V, 1);  /* Magic, see watchdog-api.txt in kernel */
    2536    if (ENABLE_FEATURE_CLEAN_UP)
     
    8697#endif
    8798
     99    write_pidfile(CONFIG_PID_FILE_PATH "/watchdog.pid");
     100
    88101    while (1) {
    89102        /*
Note: See TracChangeset for help on using the changeset viewer.