mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
* rpm support 提供全套rpm打包方案,降低软件使用的入门难度: 1、FHS路径标准化 2、全新的init/systemd启动脚本,同时支持el6和el7 3、普通用户身份运行 4、开箱即用的默认配置文件 5、自动日志轮转 * Create srs.spec
15 lines
355 B
Text
15 lines
355 B
Text
/var/log/srs/*.log {
|
|
daily
|
|
missingok
|
|
rotate 30
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 640 root nobody
|
|
sharedscripts
|
|
postrotate
|
|
if [ -f /var/lib/srs/srs.pid ]; then
|
|
kill -USR1 `cat /var/lib/srs/srs.pid`
|
|
fi
|
|
endscript
|
|
}
|