Generic Commands
To make it easier manipulating a server without needing to know which type of webapp it is serving I made these commands, that use an internal configuration to determine what function(s) actually need to bee executed.
The argument can be a single name but a couple of names separated by comma's (no spaces) is also possible. The -n indication may only be left out when you don't use any name at all, in which case all the servers in the configuration will be processed.
- fabsrv server.restart [-n <server-name-list>]
restart local server
- fabsrv server.start [-n <server-name-list>]
start local server
- fabsrv server.stop [-n <server-name-list>]
stop local server
In addition I made a command to check whther certain (or all) servers have been started:
fabsrv server.check-all [-n <server-name-list>]
This is based on the assumption that a server is started when there is a pid (process id) file present. This may not be entirely correct, ik think that the files are also created when something goes wrong. I can't recognize that (yet) because the files are created without contents (no idea why).
Output of this script can be for example:
