Don't understand howto Enable rsyslogd Autostart

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

Don't understand howto Enable rsyslogd Autostart

Postby CTPM » Tue Jul 29, 2008 3:17 pm

Hi,
still running on a FC6, with Rsyslog 3.18.1. Apologies my noob attitude :mrgreen: :mrgreen:
I understand the 7th step of the HOWTO, but i don't now exactly what i have to do, i don't know what file must be the init script, and i should do of it.

Is there anyone who have got time to loose with a noob? :mrgreen: :mrgreen:
CTPM
Avarage
 
Posts: 16
Joined: Tue Jul 29, 2008 9:01 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Don't understand howto Enable rsyslogd Autostart

Postby hkspvt » Tue Jul 29, 2008 3:21 pm

If you installed via yum, there's probably already an init script there. man chkconfig to learn how to install boot-time programs. Otherwise, check out my post: http://kb.monitorware.com/help-with-ommail-configuration-t8556-15.html#p13292

This is very distro-specific, so you may need to check some FC mailing lists or forums for additional help if that script doesn't work for you.

-HKS
hkspvt
Frequent Poster
 
Posts: 125
Joined: Thu Jun 26, 2008 6:31 pm

Re: Don't understand howto Enable rsyslogd Autostart

Postby CTPM » Wed Jul 30, 2008 11:03 am

Okay, i've got a syntax error, at the last line of the script :
Code: Select all
        echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
        exit 3
        ;;
esac

:


Why ":" ?
Shouldn't be an "exit" condition?
CTPM
Avarage
 
Posts: 16
Joined: Tue Jul 29, 2008 9:01 am

Re: Don't understand howto Enable rsyslogd Autostart

Postby CTPM » Wed Jul 30, 2008 11:26 am

Okay, there is a rsyslog.init onto redhat directory on the tarball, I've used it, and i've got this message :
Code: Select all
[root@celtilog init.d]# rsyslogd reload
usage: rsyslogd [-cversion] [-46AdnqQvwx] [-lhostlist] [-sdomainlist]
                [-fconffile] [-ipidfile]
To run rsyslogd in native mode, use "rsyslogd -c3 <other options>"

For further information see http://www.rsyslog.com/doc


I think i'm on the good way
CTPM
Avarage
 
Posts: 16
Joined: Tue Jul 29, 2008 9:01 am

Re: Don't understand howto Enable rsyslogd Autostart

Postby hkspvt » Wed Jul 30, 2008 3:14 pm

The colon on its own is just shortcut for writing "exit 0"

When you run "rsyslogd reload," your shell is searching your path for the command "rsyslogd" - probably finding it in /usr/sbin/ or something similar. Instead, give it a full or relative path:

[root@celtilog init.d]# /etc/init.d/rsyslogd reload

or

[root@celtilog init.d]# ./rsyslogd reload

-HKS
hkspvt
Frequent Poster
 
Posts: 125
Joined: Thu Jun 26, 2008 6:31 pm

Re: Don't understand howto Enable rsyslogd Autostart

Postby prakash.akumalla » Thu Jul 31, 2008 6:02 am

hi,
Its quite simple. You check chkconfig --help and find the correct command to make levels 2345 on
if levels 2345 are on for a particular service, then that particular service will start automatically after the system completes its booting.

Regards,
Prakash.
prakash.akumalla
Frequent Poster
 
Posts: 103
Joined: Thu Jun 26, 2008 2:37 pm

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests