task service XXXcommands above accept the
taskFileparameter that points to the Task Runner.
task.cfc. If you want to create a service for a task of a different name or in a different folder, you will need to provide this parameter.
server service create
task.cfcin a struct located in
server service remove
--forceto also stop the service if necessary.
server service update
this.servicestruct at the top of the CFC. Use
--forceto also stop the service if necessary. (Service will be restarted if it was originally running)
server service start
server service stop
server service stopmay cause the service to start again by itself if the
exitActionis set to
server service restart
server service status
--verboseto get additional information.
.CommandBoxfolder inside the home directory of the current user running the
boxprocess. For instance, a
braduser on Windows and *nix might have their CommandBox home in these locations:
root(required to bind to ports below 1024) is the CommandBox home directory changes to match the new user that the process runs as.
task runinside CommandBox as yourself and getting the same results. The easy fix is to lock all users into using the same CommandBox home dir. To do this, choose a folder that has read/write permissions to all users who need to use CommandBox. Then create a
commandbox.propertiesfile in the same directory as your
box.exebinary. Add a line defining a property called
commandbox_homethat points to the shared home dir. Remember to either use forward slashes or escape all backslashes.
boxand a new, empty home will be created there. if you wish, you can transfer all your settings, by stopping CommandBox and all servers, manually copying over the current
.CommandBoxfolder to the new location first. CommandBox will pick up the folder and use it if it's already there and everything inside is portable.