The Service Registry system is one of the mandatory core system of an Arrowhead local cloud.
It keeps track of the currently available services within that cloud.
The records of currently available services are kept in a local database (serviceregistry.db) located in the same folder as the capsule (the database being the encapsulated thing).
The systemconfiguration.json file is in the same directory.
Both are created upon start up of the system with the difference that the configuration file is not replaced but the database is.
To test the graceful shutdown, one cannot use the IDE debugger but must use the terminal with
go run serviceregistrar.go thing.go db.go scheduler.go
Using the IDE debugger will allow one to test device failure, i.e. unplugging the computer.