Why the whole file system keeps untouched after a restart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why the whole file system keeps untouched after a restart

828 Views
13614278
Contributor III

Hi there,

We're using IMX8mini EVK, with Yocto Linux.

Suppose I :

echo 'hello world' >/var/log/nginx/my.log

It goes fine during the daily use. But after I restart the system, the my.log file under /var/log/nginx/ would be missing.

Why each restart would cause the Linux file system back to the original status, without any files that the user created?

0 Kudos
Reply
1 Reply

805 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Yang Songxiang,

It could be a problem of permissions from ngix. I would recommend looking for more details on the ngix documentation.

https://docs.nginx.com/nginx/admin-guide/monitoring/logging/

I would check that the echo actually wrote on the log as it could be that the operation wasn’t performed due to user restrictions. And then I would also check that the nginx process is running and has the appropriate permissions and settings.

Regards,

0 Kudos
Reply