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.):
chmod 664 /etc/systemd/system/goanywhere.service
[Unit] Description=GoAnywhere Service After=network.target [Service] Type=forking # Modify user/group according to whichever user you have setup to run GoAnywhere MFT User=gasvc Group=gasvc WorkingDirectory=/usr/local/Linoma_Software/GoAnywhere # 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 Restart=on-abort StandardOutput=null StandardError=null TimeoutSec=300 # goanywhere.sh is just starting a Tomcat application; this gives you correct exit status SuccessExitStatus=143 [Install] WantedBy=default.target
Enable automatic startup:
systemctl enable goanywhere.service
systemctl start goanywhere.service
systemctl status goanywhere.service