Configuring FME Server as a System Service (Linux)
You can configure FME Server as a system service that starts when you start your system. You should do this only if you have set up system services before and understand the different run levels on your system.
WARNING: Configuring scripts to run at start-up on Linux is an advanced task. The steps for doing so vary, depending on your configuration. Use the steps listed in this section as a guide only.
FME Server is composed of a series of components, and each component has its own scripts. Both systemd and SysV scripts are provided.
The following FME Server systemd startup scripts are provided upon installation:
- <FMEServerDir>/Server/startup/systemd/fmeserver-appserver.service
- <FMEServerDir>/Server/startup/systemd/fmeserver-cleanup.service
- <FMEServerDir>/Server/startup/systemd/fmeserver-core.service
- <FMEServerDir>/Server/startup/systemd/fmeserver-database.service
- <FMEServerDir>/Server/startup/systemd/fmeserver-engines.service
- <FMEServerDir>/Server/startup/systemd/fmeserver-websocket.service
Copy these scripts and place them in the following directory, depending on your privilege level:
- root privilege: /etc/systemd/system/
- user-level privilege (no system administration rights): /usr/lib/systemd/system/
To enable startup scripts to run at system boot time
Run the following command for each script:
systemctl enable *.service
For example:
systemctl enable fmeserver-core.service
To disable startup scripts from running at system boot time
Run the following command for each script:
systemctl disable *.service
For example:
systemctl disable fmeserver-core.service
To start services manually
Run the following command for each script:
systemctl start *.service
For example:
systemctl start fmeserver-core.service
To stop services manually
Run the following command for each script:
systemctl stop *.service
For example:
systemctl stop fmeserver-core.service
Make a copy of the FME Server startup scripts:
- <FMEServerDir>/Server/startup/SysV/FMEServerAppServer
- <FMEServerDir>/Server/startup/SysV/FMEServerCleanup
- <FMEServerDir>/Server/startup/SysV/FMEServerCore
- <FMEServerDir>/Server/startup/SysV/FMEServerDatabase
- <FMEServerDir>/Server/startup/SysV/FMEServerEngines
- <FMEServerDir>/Server/startup/SysV/FMEServerWebSocket
Place the scripts here:
- /etc/init.d/FMEServerAppServer
- /etc/init.d/FMEServerCleanup
- /etc/init.d/FMEServerCore
- /etc/init.d/FMEServerDatabase
- /etc/init.d/FMEServerEngines
- /etc/init.d/FMEServerWebSocket
From the /etc/init.d/ directory, update permissions on these files with the following chmod command:
sudo chmod +x FME*
Register the FME Server services with the following command:
sudo update-rc.d FMEServer* defaults