1
0
Fork 0
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:
Purple Grape 2021-11-03 07:36:54 +08:00 committed by GitHub
parent 6e2500a569
commit 75909c82d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 255 additions and 0 deletions

View 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
}