KB Article #159305
Enable FTD Server graceful shutdown on Linux
Problem
When FTD 2.x is installed on an existing Linux machine, e.g. on RedHat or CentOS Linux box, it is not automatically added in OS shutdown scripts. FTD has to be manually added in the scripts to allow graceful shutdown on each server shutdown or reboot.
Resolution
In order to have graceful FTD server shutdown automatically upon each OS shutdown/reboot, it is recommended to do the following:
- Create the following file in '/etc/init.d' directory:
/etc/init.d]$ cat shutdown_ftd
#!/bin/bash
/opt/axway/FTDirect/nodeExecutive/shutdownExecutiveOnly.sh &
sleep 45
exit 0
- Make it executable:
/etc/init.d/chmod +x shutdown_ftd
- Create symbolic link to it in runlevels 0 (halt) and 6 (reboot):
cd /etc/rc0.d
[/etc/rc0.d]$ ln -s ../init.d/shutdown_ftd K30ftd
[/etc/rc0.d]$ ls -l K30ftd
lrwxrwxrwx 1 root root 22 Nov 2 01:25 K30ftd -> ../init.d/shutdown_ftd
[/etc/rc0.d]$ cd ../rc6.d/
[/etc/rc6.d]$ ln -s ../init.d/shutdown_ftd K30ftd
[/etc/rc6.d]$ ls -l K30ftd
lrwxrwxrwx 1 root root 22 Nov 2 01:26 K30ftd -> ../init.d/shutdown_ftd