You can setup GoAnywhere so it starts automatically when the Linux system is booted. Please refer to your operating system manual for more details on setting up auto-start services. You can execute goanywhere.sh from your startup scripts.
You're then left to your own devices. I figured out how to setup a service unit file for automatically starting GoAnywhere MFT 5.4.3 at system startup on a RHEL7 OS. This will certainly work on Centos 7 and Oracle Linux 7 systems, and should work (with minor modifications?) on any distribution using Systemd.
There is probably room for improvement and I'd love to hear any suggestions, but this has worked well for me.
Create your Systemd unit file. (The name is arbitrary and can be anything ending with .service.):
Apply correct permissions:
chmod 664 /etc/systemd/system/goanywhere.service
Edit /etc/systemd/system/goanywhere.service as follows:
# Modify user/group according to whichever user you have setup to run GoAnywhere MFT
# My executable is a shell rather than the actual shell script, goanywhere.sh.
# This is a workaround for the way goanywhere.sh is written, expecting to be run from the installation directory,
# using a relative path. The executable in a systemd unit file has to include an absolute path. I wanted to avoid
# modifying the shell script to make unit file upgrade-friendly.
ExecStart=/bin/sh goanywhere.sh start
ExecStop=/bin/sh goanywhere.sh stop
# goanywhere.sh is just starting a Tomcat application; this gives you correct exit status
Notify systemd that a new unit file exists by running this:
(You also need to run this after making subsequent changes to the file.)
Enable automatic startup:
systemctl enable goanywhere.service
Start the service:
systemctl start goanywhere.service
systemctl status goanywhere.service