Hi Liviu,
Search your instructions for something like "You may assume that at any moment, at most one program is accessing the database file" - if you have that, then you don't need to worry about multiple starts of the server.
Also - check the APIs for file level locking -
you should find a warning against this (at least if you want "write once, run everywhere" functionality).
Regards, Andrew