mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Package rpm support for CentOS/RHEL (#2701)
* rpm support 提供全套rpm打包方案,降低软件使用的入门难度: 1、FHS路径标准化 2、全新的init/systemd启动脚本,同时支持el6和el7 3、普通用户身份运行 4、开箱即用的默认配置文件 5、自动日志轮转 * Create srs.spec
This commit is contained in:
parent
6e2500a569
commit
75909c82d0
5 changed files with 255 additions and 0 deletions
15
trunk/packaging/redhat/srs.logrotate
Normal file
15
trunk/packaging/redhat/srs.logrotate
Normal file
|
@ -0,0 +1,15 @@
|
|||
/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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue