sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] 'telinit run syslog-ng start' won't start syslog-ng
- From: "Ivan Lezhnjov Jr." <ivan.lezhnjov.jr AT gmail.com>
- To: sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] 'telinit run syslog-ng start' won't start syslog-ng
- Date: Fri, 22 Aug 2008 16:03:54 +0300
After casting syslog-ng (stable grimoire version) I tried to run it by
issuing
the following command:
telinit run syslog-ng start
and it failed.
After checking the init script and trying to figure out what's wrong I've
discovered that PROVIDES=syslog is responsible for the fail start.
root@sega:/home/users/ilj % cat /etc/init.d/runlevels/%S/syslog-ng
#!/bin/bash
PROGRAM="/sbin/syslog-ng"
RUNLEVEL=S
NEEDS="+local_fs"
PROVIDES=syslog
. /etc/init.d/smgl_init
root@sega:/home/users/ilj % telinit run syslog-ng start
After this command I get the prompt back immediately. No messages like
syslog-ng: Starting syslog-ng etc.
So, I commented out PROVIDES here
root@sega:/home/users/ilj % vim /etc/init.d/runlevels/%S/syslog-ng
root@sega:/home/users/ilj % cat /etc/init.d/runlevels/%S/syslog-ng
#!/bin/bash
PROGRAM="/sbin/syslog-ng"
RUNLEVEL=S
NEEDS="+local_fs"
#PROVIDES=syslog
. /etc/init.d/smgl_init
root@sega:/home/users/ilj % telinit run syslog-ng start
syslog-ng: Starting syslog-ng...
syslog-ng: success
Good it starts now.
I tried to run syslog-ng in foreground and asked it to be verbose (while
starting via the init script with PROVIDES=syslog variable set) but it didn't
say anything suspicious in return.
#!/bin/bash
PROGRAM="/sbin/syslog-ng"
ARGS="-F -v"
RUNLEVEL=S
NEEDS="+local_fs"
PROVIDES=syslog
. /etc/init.d/smgl_init
Only this:
2008-08-22T15:54:59+03:00 sega syslog-ng[17259]: syslog-ng starting up;
version='2.0.9'
2008-08-22T15:54:59+03:00 sega syslog-ng[17259]: Initializing destination
file
writer; template='/var/log/syslog', filename='/var/log/syslog'
2008-08-22T15:54:59+03:00 sega syslog-ng[17259]: Initializing destination
file
writer; template='/var/log/debug', filename='/var/log/debug'
2008-08-22T15:54:59+03:00 sega syslog-ng[17259]: Initializing destination
file
writer; template='/var/log/messages', filename='/var/log/messages'
2008-08-22T15:54:59+03:00 sega syslog-ng[17259]: Initializing destination
file
writer; template='/dev/tty12', filename='/dev/tty12'
2008-08-22T15:55:06+03:00 sega syslog-ng[17259]: Termination requested via
signal, terminating;
2008-08-22T15:55:06+03:00 sega syslog-ng[17259]: syslog-ng shutting down;
version='2.0.9'
I ran all these commands in runlevel 3 (if it matters).
Any ideas? :)
--
Ivan Lezhnjov Jr.
Europe, Ukraine, Simferopol
Running
Source Mage GNU/Linux, kernel version 2.6.24 build #5
+----------------------------------------------------------------------+
Key ID 0x5811D90C
Key Fingerprint 2A52 5C8C 38BE C04F D8DE A169 19E2 E49A 5811 D90C
Use GPG Exercise Your Right To Privacy
Attachment:
signature.asc
Description: This is a digitally signed message part.
-
[SM-Discuss] 'telinit run syslog-ng start' won't start syslog-ng,
Ivan Lezhnjov Jr., 08/22/2008
- Re: [SM-Discuss] 'telinit run syslog-ng start' won't start syslog-ng, Ivan Lezhnjov Jr., 08/22/2008
Archive powered by MHonArc 2.6.24.