tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgin idea: warning about service restarts and database migrations



Hi!

Since the list of packages that pkgin updates is sometimes really
really long, I thought if we should add some heuristics to display
notes about packages that an admin might want to know about.

I was mostly thinking of servers that needed restarting, and databases
that needed dumping before upgrades.

For the servers, one heuristic I thought of is that these usually have
rc.d scripts (or smf files).

For databases, I guess the easiest way is to combine this with a
CATEGORY check on databases.

As for the actual effect, pkgin could show a reminder when done
updating, something like:


--- begin quote ---
The following packages which provide service have been updated:

   list of packages

You might want to restart the following service:

   list of rc.d files
--- end quote ---


For the databases, perhaps a confirmation dialog could be added BEFORE
updating, something like:


--- begin quote ---
The following database packages will be upgraded:

   list of packages

Please make sure you taken the necessary steps for migrating databases
from the old to the new versions.
--- end quote ---


Comments/suggestions?
 Thomas


Home | Main Index | Thread Index | Old Index