|Main Product Category||Contrast UI|
By default, when installing the Contrast server on Linux, an
init.d task is created which allows it to automatically startup as the OS starts up. However, some Linux distro's are moving to use
systemd as the default means of starting/stopping services.
The following process shows how to create a
systemd service for the Contrast server to allow it to be controlled with
We'll first need to create the following file at the given location:
The contents of this file will be:
[Unit] Description=Contrast Server
[Service] Type=forking ExecStart=/opt/contrast/bin/contrast-server start ExecStop=/opt/contrast/bin/contrast-server stop User=contrast_service
/opt/contrast is given here as an example of the Contrast server installation directory, it should be replaced with the actual install directory. Some Linux distributions don't allow for relative paths or variables to be used within
Once in place, run the following command to load your new
sudo systemctl daemon-reload
Finally, you can start and stop the Contrast server with the following commands:
sudo systemctl start contrast-server sudo systemctl stop contrast-server
The Contrast server should also start when the OS starts.