git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4086543
)
- enable /etc/init.d/nm
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 19:27:36 +0000
(19:27 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 19:27:36 +0000
(19:27 +0000)
NodeManager.spec
patch
|
blob
|
history
diff --git
a/NodeManager.spec
b/NodeManager.spec
index
e025afa
..
5e2fea0
100644
(file)
--- a/
NodeManager.spec
+++ b/
NodeManager.spec
@@
-47,6
+47,17
@@
rm -rf $RPM_BUILD_ROOT
install -D -m 755 nm.init $RPM_BUILD_ROOT/%{_initrddir}/nm
install -D -m 644 nm.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nm
+%post
+chkconfig --add nm
+chkconfig nm on
+
+%preun
+# 0 = erase, 1 = upgrade
+if [ $1 -eq 0 ] ; then
+ chkconfig nm off
+ chkconfig --del nm
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT