All supported Smarts releases
You will need to edit the ic-serviced
script which gets installed into /etc/init.d
. See below for the section of the script that you will need to edit:
# Change this directory as appropriate for your environment. Core files
# will be written to this directory. Thus, you should pick a partition with
# sufficient free space.
SM_SERVICE_STARTDIR=/
So if you wanted to have core files written to /var, you would set the value as below:
SM_SERVICE_STARTDIR=/var
You will need to restart all of your running InCharge processes, including sm_serviced in order for this change to take affect.
NOTE: Please be sure that sm_serviced is the last process to be shutdown and the first to be restarted so that your sm_serviced.db will have the correct information about all processes started up after the change was made.
To restart sm_serviced, you must run the following commands from /etc/init.d
:
./ic-servced stop
./ic-serviced start