Running a Sonnet Program at Boot Up

There are several Sonnet projects, such as the EM server process and the Reprise license manager, that you may wish to have automatically start when your computer boots. The procedure for doing this is dependent on your operating system.

Linux

To start a program when your Linux computer starts up, we recommend you make a Systemd service. You can make a Systemd service by preparing a service unit file, a simple text file that describes and configures the service. Systemd knows how to parse this file and configures the program mentioned in the file as a service. The service unit file should be located in /etc/systemd/system.

After that, you will be able to use Systemd commands to manage the service (stop, start, restart, etc.). For example, the command to start an emserver service is:

systemctl enable --now emserver.service

Below are some examples of a simple service unit file for emserver:

Remote EM Server Example

[Unit]

Description=Sonnet Remote EM server

After=network.target

[Service]

Type=simple

WorkingDirectory=/tmp

Environment="sonnetusa_LICENSE=5852@<license_server>"

ExecStart=/bin/sh /<path_to_sonnet>/bin/emserver -Hostname galaxy -Port 56150

Restart=always

RestartSec=30

User=cadadmin

[Install]

WantedBy=multi-user.target

Reprise License Manager Example

[Unit]

Description=Sonnet license server

After=network.target

[Service]

Type=simple

ExecStart= /<path_to_sonnet>/reprise/rlm -c /<path_to_sonnet>/licenses/sonnet.lic -dlog /<path_to_sonnet>/log/license.log

Restart=always

RestartSec=30

User=cadadmin

[Install]

WantedBy=multi-user.target

Please contact your computer administrator or your operating system’s documentation for more details on using Systemd.

Windows

To start a program when your Windows computer starts up, we recommend using "Task Scheduler", a Windows built-in utility. This utility allows you to specify a Sonnet program to automatically start when the computer boots by setting the Sonnet program to “trigger” at startup.

Remote EM Server

The program for starting a remote EM server is called emserver.exe and is located in the bin sub-folder under the Sonnet installation folder. Type emserver -h for help on the command. For example, to start the EM server on the computer galaxy using port 56150, the command is:

emserver -Hostname galaxy -Port 56150

Reprise License Manager

For automatically starting the Reprise License Manager (rlm.exe), you may use the Task Scheduler, or set it up as a service. Instructions for both are included in your installation. To access these instructions, follow these steps:

Select Admin > Diagnostics > Explore Sonnet Data Folder.

Open the Reprise folder.

Open the file, README.TXT (for instructions on setting up a service), or reprise.bat (for the syntax of the rlm.exe command), using a text editor.