What I have: VMware ESXi 4.0 with busybox installed. Among busybox applets, I'm interested in syslogd. By default, it's running as busybox syslogd. I can see it via ps ax:
ps ax | grep syslog
4316 4316 busybox syslogd
What I need: To run syslogd with options. Like that:
busybox syslogd -R 10.30.35.67
My questions:
How to configure busybox, so that -R options comes to play at system startup? Is there any config file or something like that?
How to correctly change busybox syslogd options after the system has been started? How to stop busybox syslogd properly? How to start it with new options? I tried to kill busybox syslogd process (4316 in my case), but after restarting busybox syslogd -R 10.30.35.67 I can't see any syslogd-related process at all.
There's an easier way to configure remote syslogging that is even supported by VMware.
Within the VIC, select the ESXi server, then the "Configuration" tab. From there, choose "Advanced Settings" and look for "Syslog" in the left-hand tree. Enter your syslog destination within the setting "Syslog.Remote.Hostname". Click OK and verify logs are making it to your destination properly.
Usually there is an etc directory which contains an rc file. This is text and should have the startup parameters being passed to syslogd on busybox. Also, the -R support must be compiled in.