Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running FreeBSD in a very small VM with about 1.5G of space. I'd like to disable syslogd to save disk space, but there is no entry for it in /etc/rc.conf. service -e shows that syslogd is indeed running. How do I disable/uninstall it?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Stop the daemon:

/etc/rc.d/syslogd stop

Append a line to the /etc/rc.conf:

syslogd_enable="NO"
share|improve this answer

Append a line to the /etc/rc.conf:

syslogd_enable="NO"

Stop the daemon:

/etc/rc.d/syslogd stop

However, I wouldn't recommend stopping syslogd. I recommend instead editing the size and frequency of your log rotation by editing your /etc/newsyslog.conf configuration file. It's very modifiable. You can comment out the services you don't want to follow with a # in the front of the row, or modify the:

  • count for max number of file archives
  • size for the size of each archive
  • when for when you want to rotate

There are a bunch of options that I would think could fit your situation. For instance, if you want to only keep a max kb size for your logs, you can do that. Surely you could spare a few kb for logs :-P Read the man newsyslog.conf for more detail on grooming the log system size you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.