Hello:
I'll try to make this as short as possible.
At some point in the lifetime of my installation, I edited an entry in
As a result, I ended up with two entries:
At that time, I left it at that, thinking that the newly generated entry (obviously a backup) would just stay there.
ie: oblivious as to what was going on within the system and not taken into account.
While I have a look at my log files every fortnight or so to see if I catch anything strange, I don't do the same with running services unless it is warranted.
eg: something seems to be amiss or the CUPS / cups-browsed CVE thing.
So I had a look at and , to my surprise, found this:
Both files have the same attributes.
They have the same size because, for testing purposes, I have edited the original file to reflect the contents of the backup file.
Can anyone tell me why the backup file is being loaded instead of the edited file?
ie:
Where should I be looking?
Thanks in advance.
Best,
G.
I'll try to make this as short as possible.
At some point in the lifetime of my installation, I edited an entry in
/etc/init.d
, in this specific case, /etc/init.d/halt
.As a result, I ended up with two entries:
Code:
/etc/init.d/halt
Code:
/etc/init.d/halt~
At that time, I left it at that, thinking that the newly generated entry (obviously a backup) would just stay there.
ie: oblivious as to what was going on within the system and not taken into account.
Code:
~$ ls -1 /etc/init.d
--- snip ---
halt
--- snip ---
halt~
--- snip ---
~$
While I have a look at my log files every fortnight or so to see if I catch anything strange, I don't do the same with running services unless it is warranted.
eg: something seems to be amiss or the CUPS / cups-browsed CVE thing.
So I had a look at and , to my surprise, found this:
Code:
~$ sudo service --status-all
--- snip ---
[ - ] halt~ <- this is the *backup* file being loaded.
--- snip ---
~$
Both files have the same attributes.
They have the same size because, for testing purposes, I have edited the original file to reflect the contents of the backup file.
Code:
~$ ls -l /etc/init.d/halt
-rwxr-xr-x 1 root root 1417 Sep 29 08:01 /etc/init.d/halt
~$
Code:
~$ ls -l /etc/init.d/halt~
-rwxr-xr-x 1 root root 1417 Sep 28 07:56 /etc/init.d/halt~
~$
Can anyone tell me why the backup file is being loaded instead of the edited file?
ie:
/etc/init.d/halt~
instead of /etc/init.d/halt.
Where should I be looking?
Thanks in advance.
Best,
G.