Control Script for FCEIS

I have created (by modifying one of the other control scripts for fcws/fcs/fcis) a control script for FirstClass External Integration services.


Click on the image above to download the file and extract the script from the zipped archive.  This script can be used on Linux or Mac to control the starting and stopping of FCEIS via the control script in the same manner that you can use the equivalent fcwsctl, fcsctl and fcisctl scripts to start and stop their respective services.

Download the script and copy it to your /usr/sbin directory

Use terminal to navigate to where you have downloaded the file and then issue the following commands in terminal

1. Copy the script

sudo cp fceisctl /usr/sbin

2. Set the permissions to make it executable

sudo chmod ua+x /usr/sbin/fceisctl

Now you can use the following commands

fcwsctl XXXX

where XXXX is one of the following

start      – start FirstClass External Integration Services

stop       – stop FirstClass External Integration Services (gracefully)

force      – stop FirstClass External Integration Services (force-kill)

restart    – restart FirstClass External Integration Services

status     – check whether the FirstClass External Integration Services is running or not

help       – this screen

NOTE:  When you issue the fcwsctl stop command, you will see something like the following

Stopping fceis services - 98370
17:07:10: SIGTERM: frame: <frame object at 0x7feadb00f550>
17:07:10: Traceback (most recent call last):
File "../temp/fceis/", line 141, in server
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 202, in accept
 sock, addr = self._sock.accept()
timeout: timed out
17:07:10: Traceback:
17:07:10:   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 202, in accept
17:07:10:   File "../temp/fceis/", line 141, in server
17:07:10:   File "../temp/fceis/", line 1290, in run
17:07:10:   File "../temp/fceis/", line 1482, in main
17:07:10:   File "../temp/fceis/", line 1497, in <module>
/usr/sbin/fceisctl stop: FirstClass External Integration Services (fceis) stopped ( 98370).

Don’t worry about this.  Apparently, this is fceis exiting gracefully and the developer has told me that he will try to fix this in a future release.  The key is that fceis is terminated as indicated by the last line.

This means that you can SSH into your host and control the start/stop of fceis just as you can the other FirstClass modules.

Comments are closed.