as a system operator, I would like a deamon mode
For most servers I know / write -- when you
serverctl start
you get a deamonized process (ie fork()
, setsid()
, chdir()
, Close Inherited Descriptors and Standard I/O Descriptors, reset umask()
, set up pid file etc.
and there will be a
serverctl console
that will work like the current pubsweet start
.
From a systems admin / ops perspective, this is much better than nohup
In python, there are modules that will take care of this kind of stuff for you.
I'm not a node server expert (I have a CLI and an electron app I've hacked together and maintain for a small user base) but from the research I've done, it looks like maybe forever
is the npm module that is most well maintained with a compatible license. (pm2
looks pretty awesome, but its AGPL)