The best thing to do, just to avoid confusion, is to uninstall the default
rsyslog and have the one that you compiled be in the same place
(/usr/sbin/rsyslogd instead of /usr/local/sbin/rsyslogd). The reason for this is
that if you have two installations on your system, at some point you (or your
tools) will end up getting confused and start the wrong one.
If you were using the pre-built packages, this would be very easy because they
include all the startup scripts.
Since you are building your own version, you will need to manage the startup
scripts yourself. You will also need to manage package manager dependancies (if
you just uninstall rsyslog, the system will want to uninstall a LOT of other
things that depend on it). The structure of a debian package is not that
complicated, so you can fairly easily take an existing package, replace the
files with the ones you compiled, and change the version numbers in the other
files, to create your own package that keeps the package manager happy
(checkinstall is a good tool for bootstrapping this, it will create a package
for you, you will just have to give it information on depenancies and versions)
On Ubuntu, the files you need to worry about for tweaking the startup of rsyslog
are /etc/default/rsyslog, /etc/init.d/rsyslog, and /etc/init/rsyslog.conf
/etc/init/rsyslog.conf has the actual command to start rsyslog, so if you want
to continue to have both installed, that is the file to change (but be aware
that the next time you do an upgrade from Ubuntu to a new version, it's likely
to overwrite that file)
There are sometimes very good reasons for compiling your own instead of using
the pre-built ones in the repository that Adiscon provides, but it is a
significant amount of additional work to keep the system happy when you want to
override a core component like rsyslog.
David Lang
On Sat, 7 Sep 2013, Mayur Patil wrote:
I am using Ubuntu 12.04 with rsyslog 7.2.6.
So according to you, if I am getting what you have said , I want to
rsyslogd to startup
Please correct if I am wrong !!
Seeking for guidance,
Thanks !!
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.