task service XXX
commands above accept the taskFile
parameter 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.cfc
in a struct located in this.service
. server service remove
task.cfc
itself. Use --force
to also stop the service if necessary.server service update
task.cfc
in a this.service
struct at the top of the CFC. Use --force
to also stop the service if necessary. (Service will be restarted if it was originally running)server service start
server service stop
server service stop
may cause the service to start again by itself if the exitAction
is set to restart
.server service restart
server service status
--verbose
to get additional information..CommandBox
folder inside the home directory of the current user running the box
process. For instance, a brad
user 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 run
inside 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.properties
file in the same directory as your box
or box.exe
binary. Add a line defining a property called commandbox_home
that points to the shared home dir. Remember to either use forward slashes or escape all backslashes.box
and 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 .CommandBox
folder to the new location first. CommandBox will pick up the folder and use it if it's already there and everything inside is portable.