Writes the PID to a lock file and then switches the owner of the process
Install: npm install pid_write
-- still in development so use at own risk.
Writes the PID to a lock file and then switches the group and owner of the process
I wanted to be able to use a system 5 startup script for Centos5 to control my application. I was having issues with user permissions and some Linux security stuff around user and program managment.
var pw = ;tryvar pid = pw;console;catcheconsole;