[SM-Discuss] 'telinit run syslog-ng start' won't start syslog-ng
Ivan Lezhnjov Jr.
ivan.lezhnjov.jr at gmail.com
Fri Aug 22 09:03:54 EDT 2008
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 at 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 at 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 at sega:/home/users/ilj % vim /etc/init.d/runlevels/%S/syslog-ng
root at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20080822/84c46a7d/attachment-0001.bin
More information about the SM-Discuss
mailing list