Callback or hook to run a script when a user logs in

Thanks for the reply and links, @jeff.ohrstrom . I am trying to mount user specific storage when the user logs in. As a workaround, I found that there is a configuration option to specify what command is run when a PUN is started. So, I changed “nginx_bin” in /opt/ood/nginx_stage/lib/nginx_stage/configuration.rb to point to a script that I wrote which first mounts the storage and then launches the PUN.