1 Summary: A software watchdog
2 Summary(pl): Programowy stra¿nik
7 Group: Applications/System
8 Vendor: Michael Meskes <meskes@debian.org>
9 Source0: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
11 Source2: %{name}.sysconfig
12 BuildRequires: autoconf
13 BuildRequires: automake
14 Prereq: /sbin/chkconfig
16 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The watchdog program writes to /dev/watchdog every ten seconds. If the
20 device is open but not written to within a minute the machine will
21 reboot. Each write delays the reboot time another minute. The ability
22 to reboot will depend on the state of the machines and interrupts. To
23 use this software at least a version 1.3.52 kernel is needed.
26 Program watchdog zapisuje do /dev/watchdog co 10 sekund. Je¿eli
27 urz±dzenie jest otwarte, ale nic nie zostanie zapisane przez minutê,
28 maszyna siê zrebootuje. Ka¿dy zapis opó¼nia reboot o minutê. Mo¿liwo¶æ
29 rebootu zale¿y od stanu maszyny i przerwañ. Do tego programu potrzebne
30 jest j±dro w wersji co najmniej 1.3.52.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/watchdog
50 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/watchdog
53 rm -rf $RPM_BUILD_ROOT
56 /sbin/chkconfig --add watchdog
57 if [ -f /var/lock/subsys/watchdog ]; then
58 /etc/rc.d/init.d/watchdog restart 1>&2
60 echo "Run \"/etc/rc.d/init.d/watchdog start\" to start watchdog daemon."
64 if [ "$1" = 0 ] ; then
65 if [ -f /var/lock/subsys/watchdog ]; then
66 /etc/rc.d/init.d/watchdog stop 1>&2
68 /sbin/chkconfig --del watchdog
72 %defattr(644,root,root,755)
73 %doc ChangeLog README NEWS AUTHORS IAFA-PACKAGE TODO examples/*
75 %attr(755,root,root) %{_sbindir}/watchdog
76 %attr(755,root,root) %config /etc/rc.d/init.d/watchdog
77 %attr(755,root,root) %config /etc/sysconfig/watchdog
78 %config(noreplace) %{_sysconfdir}/watchdog.conf