Solve everyday problems

Requirement 1: Table sqlite two similar data structure, data synthesized into a table

Scene: a sudden interruption cause the server to read and write sqlite interrupted, the database is locked, newspaper database disk image is malformed error, leading after the restart can not continue to write, to back up data, rebuild the database data is written, the latter requires a data merge.

Requirement 2: start a program automatically when the server is restarted

Scene: program recording process, if not start, resulting in the accumulation of the above data transfer, disk full, to prevent the server reboots forget to start this program, opt-in mechanism to automatically start

Guess you like

Origin www.cnblogs.com/mbaymax/p/12165925.html