K
K
Konstantin2014-06-04 10:13:07
linux
Konstantin, 2014-06-04 10:13:07

Why are all fixed files erased after reloading a debian build?

root @yellow :/# cat /etc/issue
Debian GNU/Linux 5.0 \n \l
this is a build on a lenovo px4-300r storage. I create some scripts to send monitoring, but after a server restart, all changes and new files are simply erased

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Semyon Voronov, 2014-06-04
@Gineaser

Because you create scripts in /var/prtg/scripts, they are deleted after reboot, most likely because the directory is temporary and is in RAM.
Check: mount --types tmpfs
Try to create a script in another place, not in / var
So that the routes are not lost, you need to add them to the configuration file /etc/network/interfaces, but rather a separate script in /etc/network/if-up.d/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question