passenger icon indicating copy to clipboard operation
passenger copied to clipboard

How to set this clean stale to false?

Open willnode opened this issue 4 years ago • 1 comments

Sorry, maybe incorrect place to ask this, but I can't found anywhere in the documentation. https://github.com/phusion/passenger/blob/44ab81c9fe45456415bd5312c3d695e9f225730f/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb#L38-L40

Now I want to set clean_stale_or_corrupted to false. How to do that?

I ask this because I want to hide these warnings when a non-sudo user wants to restart their own apps.

*** Cleaning stale instance directory /var/run/passenger-instreg/passenger.2bNkYvV
    Warning: Permission denied @ dir_s_rmdir - /var/run/passenger-instreg/passenger.2bNkYvV
*** Cleaning stale instance directory /var/run/passenger-instreg/passenger.LlOa0MJ
    Warning: Permission denied @ dir_s_rmdir - /var/run/passenger-instreg/passenger.LlOa0MJ
*** Cleaning stale instance directory /var/run/passenger-instreg/passenger.R9pfFuA
    Warning: Permission denied @ dir_s_rmdir - /var/run/passenger-instreg/passenger.R9pfFuA

willnode avatar Jun 28 '21 10:06 willnode

That option isn't exposed to the cli atm, i'll mark this as an enhancement request

CamJN avatar Jul 05 '21 14:07 CamJN