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.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/watchdog
51 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/watchdog
53 gzip -9nf ChangeLog README NEWS AUTHORS IAFA-PACKAGE TODO examples/*
56 rm -rf $RPM_BUILD_ROOT
59 /sbin/chkconfig --add watchdog
60 if [ -f /var/lock/subsys/watchdog ]; then
61 /etc/rc.d/init.d/watchdog restart 1>&2
63 echo "Run \"/etc/rc.d/init.d/watchdog start\" to start watchdog daemon."
67 if [ "$1" = 0 ] ; then
68 if [ -f /var/lock/subsys/watchdog ]; then
69 /etc/rc.d/init.d/watchdog stop 1>&2
71 /sbin/chkconfig --del watchdog
75 %defattr(644,root,root,755)
76 %doc *.gz examples/*.gz
78 %attr(755,root,root) %{_sbindir}/watchdog
79 %attr(755,root,root) %config /etc/rc.d/init.d/watchdog
80 %attr(755,root,root) %config /etc/sysconfig/watchdog
81 %config(noreplace) %{_sysconfdir}/watchdog.conf