Command Line

There are 2 start/stop command line tools for common start/stop and service controlling.

Start/stop service from command line

When you start or stop service from the platform different with Windows, or from Windows command prompt, please run the files below from command line.

UNIXStart[INSTALL_DIR]/flow/bin/flowsvc
Stop[INSTALL_DIR]/flow/bin/fsstop
WindowsStart[INSTALL_DIR]/flow/bin/flowsvc.exe
Stop[INSTALL_DIR]/flow/bin/fsstop.exe

You can access to resources with the authority of OS user who has run the commands. For some cases, user can start or stop OS and Flow Service synchronously by writing these commands into start/stop script. Please refer to OS manuals for how to write the script.

Control service process

There is a command line tool called "fsctrl" for more accuracy control. Fsctrl options are as below.

fsctrl shutdown Stop the whole Flow Service.
It's as same as fsstop.
fsctrl shutdown killall Force each process to quit in order.
fsctrl shutdown Time-out period(second) Force the service which can't stop in the required time to quit. If it can stop in the required time, it can be considered as a regular stop. The time-out period can be used in every service.
Example) fsctrl shutdown 15
fsctrl start [ServiceName] Start a specified service.
Example) fsctrl start FlowService
fsctrl stop [ServiceName] Stop a specified service.
fsctrl restart [ServiceName] Restart a specified service.
fsctrl kill [ServiceName] Force a specified service to quit.
fsctrl status [ServiceName] Show the status of a specified service. (It will show the status of whole Flow Service if the service is not specified.)
fsctrl gc [ServiceName] Run garbage collection by a specified service.

※ [ServiceName] is a "service name", which can be seen from "Tools"-"Services"-"List" in Flow Service management console.

Terminal Code

fsctrl command's terminal codes are as below. (Except status option)

Terminal codes Descriptios
-1 Fail to send commands (When can't be connected to server)
0 Run command successfully
1 Fail to run command

Status option's terminal code

Terminal codes Descriptions
0 Unknown (Not known)
1 StartPending (Starting)
2 Running (Running)
3 StopPending (Stopping)
4 Stopped (Stopped)
5 Down (Abnormal end)
 

To the top of this page