Closed kellyselden closed 8 years ago
@kellyselden /var/run folder is mounted on tmpfs and is reset on each reboot, so the user configuration on that will disappear. Hence you are getting an error on reboot, and this will happen in all Linux variants.
Also it is probably not good to rely on pid file from forever since pid might change if process is recycled for any reason. Thats why internally forever-service does not depend upon pid obtained during initial run of forever.
If you remove pidFile parameter it should work on reboot as well.
Thanks, this is beginning to make more sense. I'm learning which options I can and can't transfer over from a plain forever setup.
I know
runAsUser
is experimental, so apologies if this is a known issue. I've successfully usedrunAsUser
with the following setup:The logs show it is working. But on reboot, the logs say:
It appears on reboot it switches to running as root.