lsu

On each DSM, the lsu command displays the last 10 archive files.  On the flux system, the lsu command runs lsu on each of the tower DSMs in succession.

sstat

The post processing of CABL data is done on the flux laptop at the BAO tower, and on porter2 at EOL.

To check the status of the various processes on either system, use the sstat command.  It displays a tree of the various processes, followed by an indication of "all services seem to be running", or it will list the missing services. 

On flux, the processes are running under the aster userid.  On porter2 they are running under maclean.  They should be started automatically at bootup.

The processes are started and monitored by systemd on flux and porter2.  

If a process isn't running, look at  the system log file,  /var/log/isfs/isfs.log to help track down the problem.

On flux, the services are:

On porter2:

sstat will also show rsync_loop and statsproc@trh_test services on porter2. Those are running in support of the CentNet project.

restart_statsproc

If you make a change to the XML, you will usually want to restart the statsproc processes.  Only if an XML change effects the archive of the raw data do you need to restart dsm_server.

To restart the statsproc processes on flux or porter2, use the restart_statsproc command.  On flux it does a systemctl --user restart on each of the statsproc services.  

On porter2  the processes are running under the "maclean" login, and only that user can directly restart the services directly. As a work-around, restart_statsproc writes a string to the file $ISFF/projects/$PROJECT/ISFF/logs/statsproc_cmd.txt. The proc_restarter service wakes up every 10 seconds, checks that file, and if it contains the string "restart", does a systemctl --user restart on the statsproc services. 

.