Skip to content

Restarting NIMS Processes

Michael Perry edited this page Mar 23, 2017 · 5 revisions

cni (root): restart the db with

service postgresql restart

cni (root): restart the web server with

service apache2 restart

cni (nims): restart the processes in the tmux session (e.g., tmux attach, ...)

PYTHONPATH=. nimsproc/sorter.py -l debug -p /scratch/cni/unsortable postgresql://nims:nims@cni.stanford.edu:5432/nims /scratch/cni/upload /nimsfs/nims
PYTHONPATH=. nimsproc/scheduler.py postgresql://nims:nims@cni.stanford.edu:5432/nims /nimsfs/nims

reaper (nims): restart the processes in the tmux session (e.g., tmux attach, ...)

muxrecon (nims): restart the processes in the tmux session (e.g., tmux attach, ...)

reaper (root): stop nfs with

service nfs-kernel-server stop

reaper (nims): unmount and remount nimsfs with

 fusermount -u /nimsfs
 fusermount -u /nimsfs_god
 . ~/tg2env/bin/activate
 ./nimsutil/nimsfs.py -r /net/nimsfs/mnt/nimsfs/nims/ /nimsfs

reaper (root): start nfs with service nfs-kernel-server start

Note: if you have trouble unmounting nimsfs, try 'umount -l /nimsfs'. Verify with fusermount -u

Clone this wiki locally