[opensuse-packaging] splitting runlevel scripts
A runlevel script X without further dependencies was split into X and Y. Now Y needs to be started before X. Both scripts are in the same rpm package. Adding '# Required-Start: Y' to script X will break updating the package because there seems to be no way to get Y enabled during the package update. For fresh install this may work. %post %{fillup_and_insserv -y -n Y Y} %{fillup_and_insserv -y -n X X} But for upgrade there is appearently no way to enable Y only if X is already active. How is this situation supposed to be handled, cleanly? Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 23/07/10 16:23, Olaf Hering escribió:
A runlevel script X without further dependencies was split into X and Y. Now Y needs to be started before X.
y.init # X-Start-Before: X x.init # X-Stop-After: Y
But for upgrade there is appearently no way to enable Y only if X is already active.
How is this situation supposed to be handled, cleanly?
Hrmmm.. not sure how to handle this.. Werner ? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Jul 23, 2010 at 05:03:44PM -0400, Cristian Rodríguez wrote:
El 23/07/10 16:23, Olaf Hering escribió:
A runlevel script X without further dependencies was split into X and Y. Now Y needs to be started before X.
y.init
# X-Start-Before: X
x.init
# X-Stop-After: Y
But for upgrade there is appearently no way to enable Y only if X is already active.
How is this situation supposed to be handled, cleanly?
Hrmmm.. not sure how to handle this.. Werner ?
IMHO this have to be done in the spec file. OK it requires some checks in the postinstall but IMHO this should be possible. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
Dr. Werner Fink
-
Olaf Hering