git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6f528c0
)
- stop plc services before upgrading
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 17:12:25 +0000
(17:12 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 17:12:25 +0000
(17:12 +0000)
myplc.spec
patch
|
blob
|
history
diff --git
a/myplc.spec
b/myplc.spec
index
e8f8f10
..
d783f72
100644
(file)
--- a/
myplc.spec
+++ b/
myplc.spec
@@
-70,6
+70,11
@@
if [ -n "$SUDO_USER" ] ; then
chown -R $SUDO_USER %{_rpmdir}/%{_arch}
fi
+%pre
+if [ -x %{_sysconfdir}/init.d/plc ] ; then
+ service plc stop
+fi
+
%post
chkconfig --add plc
chkconfig plc on