Redirecting standard output to syslog

前端 未结 5 1277
半阙折子戏
半阙折子戏 2021-01-01 20:57

I\'m planning to package OpenTibia Server for Debian. One of the things I want to do is add startup via /etc/init.d and daemonization of the otserv

5条回答
  •  离开以前
    2021-01-01 21:17

    Not sure whether a straight "C" answer suffices; but in "C" you can use underlying stdio features to plug the (FILE*) directly into syslog calls, without an intervening "logger" process. Check out http://mischasan.wordpress.com/2011/05/25/redirecting-stderr-to-syslog/

提交回复
热议问题