]> git.pld-linux.org Git - packages/tenshi.git/commitdiff
- added chkconfig
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 28 Jan 2005 18:56:16 +0000 (18:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tenshi.spec -> 1.5

tenshi.spec

index ecc7dce4d68a1024e70a11587807c384b99ba1a5..e467517509891ac7f88d06b4f428a2e4a8c2e3ab 100644 (file)
@@ -1,9 +1,8 @@
-# TODO: chkconfig
 Summary:       Log parsing and notification program
 Summary(pl):   Program do analizy logów i powiadamiania
 Name:          tenshi
 Version:       0.3.2
-Release:       0.4
+Release:       0.5
 License:       GPL
 Group:         Applications/System
 Source0:       http://dev.gentoo.org/~lcars/tenshi/%{name}-%{version}.tar.gz
@@ -64,6 +63,22 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add %{name}
+if [ -f /var/lock/subsys/%{name} ]; then
+       /etc/rc.d/init.d/%{name} restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/%{name} ]; then
+               /etc/rc.d/init.d/%{name} stop >&2
+       fi
+       /sbin/chkconfig --del %{name}
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc README INSTALL CREDITS Changelog
This page took 0.06646 seconds and 4 git commands to generate.