When updating from SmartServer 3.6 to 4.0 and higher, it is necessary to migrate from supervisorctl to smartserverctl for custom device types and services. This section describes how to migrate from supervisorctl to smartserverctl and consists of the following:
Create unit files for each service and place the files in the directory: /usr/lib/systemd/system/.
The format for each service unit file name is smartserver-<service>.service, where <service> is the name you want to use to refer to your service. The name is case-sensitive and should reflect the purpose of the service. For the example above, the file name would be smartserver-myService.service.
Once unit files have been created for all of your services, you can install them by entering the following command:
For <service>, use the name of your service as defined in the unit file.