Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng will nicht laufen, config datei?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Tue May 22, 2007 7:21 pm    Post subject: syslog-ng will nicht laufen, config datei? Reply with quote

hallo
hab ein problem mit dem syslog-ng, er will sich nicht starten lassen .. und er ist der meinung es wuerde an der config datei liegen


etc/init.d/syslog-ng start
Code:

/etc/init.d/syslog-ng: line 25: syslog-ng: command not found
 * Configuration error. Please fix your configfile (/etc/syslog-ng/syslog-ng.conf)


die config datei sieht so aus, an ihr habe ich per hand nie etwas gemacht oder veraendert
vi /etc/syslog-ng/syslog-ng.conf
Code:

# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.5 2005/05/12 05:46:10 mr_bones_ Exp $
#
# Syslog-ng default configuration file for Gentoo Linux
# contributed by Michael Sterrett

options {
        chain_hostnames(off);
        sync(0);

        # The default action of syslog-ng 1.6.0 is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of
        # how many messages syslog-ng missed (0).
        stats(43200);
};

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };

destination messages { file("/var/log/messages"); };

# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };


wie koennte ich den syslog-ng zum laufen bekommen?
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Tue May 22, 2007 7:41 pm    Post subject: Re: syslog-ng will nicht laufen, config datei? Reply with quote

pieter_parker wrote:
Code:
/etc/init.d/syslog-ng: line 25: syslog-ng: command not found
Wie ein Blick in /etc/init.d/syslog-ng zeigt, kommt der Config-Check gar nicht erst zustande.
Code:
# which syslog-ng
/usr/sbin/syslog-ng
Wo ist denn Deiner? Was sagt denn $PATH? Sonst bau ihn nochmal und schau, ob Dir was auffällt.
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Tue May 22, 2007 7:55 pm    Post subject: Reply with quote

hab ihn neu gebaut..

Code:

which syslog-ng
/usr/sbin/syslog-ng

Code:

/etc/init.d/syslog-ng start
 * Caching service dependencies ...                                                      [ ok ]
 * Starting syslog-ng ...
 * Failed to start syslog-ng

aber richtig starten lassen will er sich immer noch nicht..


Code:

$PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/4.1.2: Datei oder Verzeichnis nicht gefunden
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Tue May 22, 2007 8:55 pm    Post subject: Reply with quote

Steht in /var/log/messages ein Grund, warum syslog-ng nicht starten will?

EDIT: Ach nein, vergiss es, dazu muss ja syslog-ng laufen :oops:
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Wed May 23, 2007 9:00 am    Post subject: Reply with quote

wie kann ich rausfinden warum sich syslog nicht starten lassen will?
Back to top
View user's profile Send private message
aleph-muc
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 205
Location: Auf dem Land

PostPosted: Wed May 23, 2007 1:19 pm    Post subject: Reply with quote

Nur ein Schuß ins Blaue:

genügend Platz unter /var ist vorhanden?

Gruß
aleph
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Wed May 23, 2007 3:58 pm    Post subject: Reply with quote

Code:

df -HT
Filesystem    Type     Size   Used  Avail Use% Mounted on
/dev/hda3     ext3     3,7G   2,9G   593M  83% /
udev         tmpfs     127M   320k   127M   1% /dev
/dev/hda1     ext2     104M    13M    87M  13% /boot
none         tmpfs     127M      0   127M   0% /dev/shm

in dem pc ist nur 1ne festplatte, und auf der sind noch ueber 500mb frei..
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Wed May 23, 2007 4:55 pm    Post subject: Reply with quote

Kannst Du es nicht einfach mal mit /usr/sbin/syslog-ng -dvF oder so per Hand starten?
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Wed May 23, 2007 7:37 pm    Post subject: Reply with quote

Code:

/usr/sbin/syslog-ng -dvF
binding fd 3, unixaddr: /dev/log
io.c: listening on fd 3
io.c: Preparing fd 4 for reading
syslog-ng version 1.6.11 starting
io.c: Preparing fd 5 for writing
Changing permissions on special file /dev/tty12
io.c: Preparing fd 6 for writing
Ungültiger Maschinenbefehl

irgendetwas stimmt mit dem syslog-ng nicht ....
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Thu May 24, 2007 7:12 am    Post subject: Reply with quote

Welche CPU hast du? Welche CFLAGS?

Schon mal neukompilieren versucht?
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 8:52 am    Post subject: Reply with quote

den syslog-ng hab ich schon neugebaut.. erfolglos

in /etc/make.conf steht:
CFLAGS="-march=c3 -Os -pipe -fomit-frame-pointer"

es ist eine via c3 cpu[/code]
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Thu May 24, 2007 9:43 am    Post subject: Reply with quote

pieter_parker wrote:
den syslog-ng hab ich schon neugebaut.. erfolglos

in /etc/make.conf steht:
CFLAGS="-march=c3 -Os -pipe -fomit-frame-pointer"

es ist eine via c3 cpu[/code]


Welchen CHOST?

Und wenn du mal testweise mit CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" baust, hilfts?
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 10:09 am    Post subject: Reply with quote

CHOST="i586-pc-linux-gnu"

du meinst
CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer"
und dann...?
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Thu May 24, 2007 10:10 am    Post subject: Reply with quote

pieter_parker wrote:
CHOST="i586-pc-linux-gnu"

du meinst
CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer"
und dann...?


Genau, und dann emerge syslog-ng und schauen obs geht.
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 10:18 am    Post subject: Reply with quote

habe ich in die make.conf in /etc/ geschrieben:
CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer"

dann
emerge -av syslog-ng
gemacht

und danach:
/usr/sbin/syslog-ng -dvF
Code:

binding fd 3, unixaddr: /dev/log
io.c: listening on fd 3
io.c: Preparing fd 4 for reading
syslog-ng version 1.6.11 starting
io.c: Preparing fd 5 for writing
Changing permissions on special file /dev/tty12
io.c: Preparing fd 6 for writing
Ungültiger Maschinenbefehl

aber leider immernoch unveraendert....
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Thu May 24, 2007 10:26 am    Post subject: Reply with quote

probier mal nur
Code:
CFLAGS="-march=i586 -pipe"


oder gar

Code:
CFLAGS="-march=i386 -pipe"

_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 10:42 am    Post subject: Reply with quote

hab es gleich mit i386 versucht
also in die make.conf in /etc/ habe ich
CFLAGS="-march=i386 -pipe"
geschrieben

dann wie gehabt emerge -av syslog-ng gemacht

und dann
/usr/sbin/syslog-ng -dvF
Code:

binding fd 3, unixaddr: /dev/log
io.c: listening on fd 3
io.c: Preparing fd 4 for reading
syslog-ng version 1.6.11 starting
io.c: Preparing fd 5 for writing
Changing permissions on special file /dev/tty12
io.c: Preparing fd 6 for writing
Ungültiger Maschinenbefehl

ich versteh das nicht.. was passt dem syslog-ng nicht bei mir....
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Thu May 24, 2007 12:02 pm    Post subject: Reply with quote

Kannst Du evtl. das Binary ins Netz stellen?
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 12:15 pm    Post subject: Reply with quote

du meinst ich soll die datei syslog-ng die in /usr/sbin/ liegt bei z.b. rapidshare.com hochladen?
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Thu May 24, 2007 12:16 pm    Post subject: Reply with quote

pieter_parker wrote:
du meinst ich soll die datei syslog-ng die in /usr/sbin/ liegt bei z.b. rapidshare.com hochladen?


Ja.
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Thu May 24, 2007 12:21 pm    Post subject: Reply with quote

oke
hier ist der link zu meiner syslog-ng datei
http://rapidshare.com/files/33108186/syslog-ng.html
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Fri May 25, 2007 6:52 am    Post subject: Reply with quote

was sagt ihr zu der hochgeladenen datei?
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Fri May 25, 2007 8:31 am    Post subject: Reply with quote

Bei mir laeuft die... Wenn ich die Liste der Befehle automat. durchgehe:

Code:

- add
+ addl
- and
= bswap
- call
- cld
+ cltd
+ cmova
+ cmovbe
+ cmove
+ cmovne
- cmp
- cmpb
# cmpl
- cmpw
+ cwtl
- dec
# decl
- div
+ divl
# fildll
= fistpl
= fldcw
= fldl
= fmulp
= fnstcw
- hlt
+ idivl
- imul
- inc
# incb
# incl
- ja
- jae
- jb
- jbe
- je
- jg
- jge
- jl
- jle
- jmp
- jne
- jns
- js
- lea
= leave
- mov
- movb
+ movl
+ movsbl
+ movsl
+ movswl
- movw
+ movzbl
+ movzwl
- mul
- neg
# negl
= nop
- not
- or
# orl
- pop
- push
+ pushl
= repnz
= repz
- ret
- ror
- sar
= sbb
= seta
= setb
= sete
= setg
= setne
- shl
# shll
- shr
# shrl
- stos
- sub
+ subl
- test
# testb
- xor


Ist alles spaetestens in IA-32 enthalten und sollte auch vom C3 beherrscht werden.
Back to top
View user's profile Send private message
pieter_parker
Veteran
Veteran


Joined: 07 Aug 2006
Posts: 1488
Location: 127.0.0.1

PostPosted: Fri May 25, 2007 11:29 am    Post subject: Reply with quote

ja, der c3 kann aufjedenfall i386 .. in der ja auch die datei ist

was koennte ich noch versuchen..probieren um rauszufinden warum es bei mir nicht laeuft
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Fri May 25, 2007 12:11 pm    Post subject: Reply with quote

Vlt. haengt er ja auch in einer Bibliothek. Bekommst Du zB. mit strace raus, wo er genau stecken bleibt? Ansonsten mit debug-Flag kompilieren und den Debugger anwerfen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum