📄 install
字号:
If you're on a Debian system, make -f debian/rules binary creates thewatchdog package. It's even easier if you use debmake, just call build.(Note that the Debian files are not distributed with the original sourceanymore. You have to get the Debian .diff.gz file, too.)If you use redhat, you can use the .spec file to generate a package. But aswith Debian you have to get the .spec file from the RedHat sources. Copywatchdog.spec to /usr/src/redhat/SPECS, copy the .tar.gz archive to/usr/src/redhat/SOURCES, cd /usr/src/redhat/SPECS, rpm -ba watchdog.spec.(Note that the watchdog.spec file not distributed with the original sourceeither.)If your Linux distribution does not include watchdog feel free to ask thedistributor to add it. Since watchdog is GPLed there should not be aproblem.Okay, if you want to install it manually:$ autoreconf -i (if you're building from CVS)$ ./configure$ make$ su# make installThere are several options available which can be listed by running$ ./configure --helpWe only list some options here which are generally useful.Symbols: *cl - can be overridden in the command line *cf - can be overridden in the config file --with-sleep-interval=sec (default 10) *cl *cf This allows you to set the default number of seconds which watchdog will sleep before acting again. --with-sysadmin=email (default root) *cf If watchdog attempts to reboot a machine, it will try to send an email out before that. You can set the email address of the recipient with this option. --with-maxload=int (default 12) *cf If the load average reaches this point, the machine will reboot. --with-watchdog=path (default /dev/watchdog) *cf --with-temperature=path (default /dev/temperature) *cf Sets the path for the respective device. EnjoyMichael
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -