Create a ticket
Follow

Q100566: Creating a Flix 6 service in CentOS 7

SUMMARY

This article describes how to set up a Flix 6 service to start with the system.

MORE INFORMATION

If you are not using network-attached storage for Flix you can skip the first step.

  1. Find the service name responsible for mounting the volume where the flix_server executable lives and/or the flix asset directory resides. You can do that by running the following command:
systemctl | grep mounted

It will print a list of mounted volumes and how the system calls them. You will need to find the one where the flix_server executable lives and/or the asset directory resides. Take note of the service name/s, as you will need it in step 3. For example:

systemctl | grep mounted
mnt-foundry.mount              loaded active mounted   /mnt/foundry

The mounted directory is /mnt/foundry and mnt-foundry.mount is the service name.

  1. Create a file called flix_server.service and place it under /etc/systemd/system/
  2. Add the following lines to the file you just created:
[Unit]
Description=Flix-Service
After=FLIXMOUNTSERVICE.mount

[Service]
Type=forking
ExecStart=/PATH/TO/flix_server

[Install]
WantedBy=multi-user.target

 

Where FLIXMOUNTSERVICE is the service you looked up in Step 1. If you don’t use network attached storage for the flix software or assets, you can skip this line.

After you have created the flix_server.service file, you need to run

systemctl enable flix_server

Then you can restart your Flix 6 server to make sure the flix_server starts after the server is rebooted.  

 

FURTHER READING

If you have a problem with your Flix 6 service please open a Foundry support ticket, send us your service file and any errors you see during the system startup in the /var/log/messages. For information on how to open a support ticket, please refer to the Q100064: How to raise a support ticket article.

 

Was this article helpful?

We're sorry to hear that

Please tell us why
0 out of 0 found this helpful