Hallo.
Ich habe die syslog-ng.conf leider mit einer alten Datei überschrieben. Ich habe versucht das Paket neu zu installieren, aber da wird dann die Config nicht neu angelegt. Wie bekomme ich die alte Config-Datei wieder zurück?
Gruss Sewulba
[solved] Conf überschrieben, wie gehts zurück?
[solved] Conf überschrieben, wie gehts zurück?
Zuletzt geändert von sewulba am 26.12.2014 16:02:56, insgesamt 1-mal geändert.
Debian Woody @ Amiga 1200
Odroid-XU3 @ Octacore 2GB Ram
Debian Wheezy@Dual Pentium Pro...
Odroid-XU3 @ Octacore 2GB Ram
Debian Wheezy@Dual Pentium Pro...
Re: Conf überschrieben, wie gehts zurück?
Lösung mit der Konfigurationsdatei "/etc/rsyslog.conf" als Beispiel:
Gruß
gms
Code: Alles auswählen
root@sirius:~# mv /etc/rsyslog.conf .
root@sirius:~#
root@sirius:~# dpkg -S /etc/rsyslog.conf
rsyslog: /etc/rsyslog.conf
root@sirius:~# apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 547 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://debian.inode.at/debian/ testing/main rsyslog amd64 8.4.2-1 [547 kB]
Fetched 547 kB in 0s (3,060 kB/s)
(Reading database ... 179241 files and directories currently installed.)
Preparing to unpack .../rsyslog_8.4.2-1_amd64.deb ...
Unpacking rsyslog (8.4.2-1) over (8.4.2-1) ...
Processing triggers for man-db (2.7.0.2-4) ...
Setting up rsyslog (8.4.2-1) ...
Configuration file `/etc/rsyslog.conf', does not exist on system.
Installing new config file as you requested.
gms
Re: Conf überschrieben, wie gehts zurück?
Alternativ
Mit 'dpkg-deb -x ...deb ...' entpacken.
Code: Alles auswählen
apt-get download syslog-ng-core
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: Conf überschrieben, wie gehts zurück?
Vielen herzlichen Dank. Das hat geklappt!
Debian Woody @ Amiga 1200
Odroid-XU3 @ Octacore 2GB Ram
Debian Wheezy@Dual Pentium Pro...
Odroid-XU3 @ Octacore 2GB Ram
Debian Wheezy@Dual Pentium Pro...