A program for implementing a Software Watchdog

Source: Internet
Author: User

Because it is a software watchdog, his role can only be considered as a helper tool.

However, its function should be meaningless.

The implementation plan of this software is as follows:


1. Software form

A module soft_wdt.ko runs in the kernel.


2. software startup Method

Insmod soft_wdt.ko Dev =/dev/soft_wdt timeout = 5 log =/path/to/log.txt

These parameters are: device files to be exposed to users, dog Feed interval, log file path

More parameters may be supported in the future


3. Target customers

Independent user-state threads.


4. Usage

Which thread needs to check the door service and open the device file, such as/dev/soft_wdt. Write Data to/dev/soft_wdt at regular intervals.

A thread can write special data, such as setting the thread name and interval.

If a dog is not fed to any thread for a long time, soft_wdt.ko records the log (including the executable program name, thread name, and time interval) and restarts the system.


5. Development and testing platform

Use an arm board at hand and corresponding software systems, including the kernel source code and cross-compilation tool chain.

A program for implementing a Software Watchdog

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.