Changing syslog log path
问题 How do I change the log path of syslog daemon during runtime? My goal is to rotate log file every filesize or date, but I don't have logrotate in QNX/POSIX. Do I just do an edit and hope that the syslogd checks the .conf file everytime, or is there any other workaround? Thanks. Clarification: It has to be done in C or C++, not in script and console command line, for portabality issues. 回答1: Find the pid of syslogd. Let's say it's 123. Then, after you've finished your edit, on the command line