Michael Prokop
b5c350beb9
el init scripts: send errors to stderr and exit with proper return code
...
`exit -1` is out of range in shell scripts and returning
with 255, while init scripts are supposed to be exit with `1`
and similar on errors.
We're following
http://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html
and returning with exit code 6 for configuration issues.
Change-Id: I8eda8e059c4ea10b9ddbddd1306627894073b034
7 years ago
Michael Prokop
e5956f7f9f
el init script: ensure TABLE is set by default
...
Otherwise we might end up with empty "$TABLE", while we're
trying to execute:
echo "del $TABLE" > /proc/rtpengine/control
This will fail with `echo: write error: Invalid argument` error then.
Instead set TABLE by default to '0'. Users can
customize this via /etc/sysconfig/rtpengine,
and the file is sourced after we set the default.
Closes #696
Change-Id: I2f9bb810757507bcc01509ce02676af0d711f515
7 years ago
Richard Fuchs
aaccc10630
fix el init script inserting duplicate iptables rules
...
closes #696
Change-Id: Ie7d7bc6ec152c8b9cbae08422338563169158f97
7 years ago
Denis Maksimov
e28ca4bcdc
add BuildRequires: gperf in spec file
7 years ago
Yasin CANER
81b8f98318
rtpengine.service : added new service file for Centos
...
added new systemd service file for Centos 7
7 years ago
Yasin CANER
63f3639f9d
rtpengine.sysconfig : changed comment line for systemd
...
Changed comment line for systemd. systemd cannot read variables when commented as old.
7 years ago
Øyvind Kolbu
a69bf0578e
Add Graphite options to el sysconfig.
7 years ago
Øyvind Kolbu
cceadfd6e6
Match latest variable names in rtpengine.init.
7 years ago
Richard Fuchs
4edfe6537e
Merge branch 'centos7-build' of https://github.com/vasilevalex/rtpengine
...
Change-Id: I2586327f7c1f3b9ac556176fd578d484b090c9e8
7 years ago
Alexey Vasilyev
422e18de24
Separate build with/without transcoding
...
If you don't need to use transcoding and recording, so you don't need
to install ffmpeg libraries. Just change with_transcoding to 0.
Also some changes according directory name inside tar.gz archive
7 years ago
netaskd
8f4c54773a
update rtpengine-recording pid filename
...
sysinit script is not expected to see /var/run/ngcp-rtpengine-recording-daemon.pid
PID file name renamed to rtpengine-recording.pid
7 years ago
Alexander Lutay
bc9f09cdf5
TT#41051 Fix shellcheck warning for Red Hat init scripts
...
* warning: cachefile appears unused. Verify it or export it. [SC2034]
* warning: Double quote to prevent globbing and word splitting. [SC2086]
* removed unnecessary space
Change-Id: I71276ca08d1a5599bf1034403d2973ef78d8079e
7 years ago
netaskd
1ab8cb121e
commented out all pre-start arguments because all of them can be configured in main config file of application
7 years ago
netaskd
f52e3490a9
refactoring handling kernel table for config and sysconfig. variable KERNEL deleted as unused
7 years ago
netaskd
e64a8147cd
renamed mariadb-devel to mysql-devel for centos6 compatibility
7 years ago
netaskd
a1ac45aa71
- add package recording
...
- update to ngcp-rtpengine version 6.4.0.0
7 years ago
Eric Tamme
627294beeb
do not require epel-release in spec file
8 years ago
netaskd
62ec9cc4d2
add posibility to use different kernel version
8 years ago
netaskd
5ce19a8f9f
add homer options to el configuration
8 years ago
Richard Fuchs
c88494fbb6
add Requires(pre): shadow-utils to spec file
...
closes #453
Change-Id: I40a234e68eee1a112abeec3f8558ee738ca3d4e1
8 years ago
Guillem Jover
53b3c36939
TT#24097 Fix shell quoting
...
- Add missing quotes.
- Switch some problematic usages to use bash arrays.
- Override shellcheck errors (these might need fixing in the future).
Change-Id: Id451ff9f4c5d5ef9b3826544908d64e9c08c5797
8 years ago
Guillem Jover
33bafcfc3c
TT#24097 Use $() instead of deprecated ``
...
Change-Id: Ief744bc63928e9eeee72436911e01b7b2a29c260
8 years ago
Guillem Jover
33518213c0
TT#24097 Remove unused shell variables
...
Change-Id: I529a493b2c8d3573d1b848c3fffa951bb8fc60c9
8 years ago
Konstantin Poliakov
5c5a4ef4fc
Issue354: Fixes for rtpengint to ngcp-rtpengine renaming issues (including issue 356).
9 years ago
Karsten Horsmann
06922c530d
Update rtpengine.init
...
There is no INPUT_prefilter table on CentOS 6 systems. So put it on INPUT should be good enough.
9 years ago
Marcel Weinberg
b215389d15
some small fixes; updated the specs file to be compatible to rtpengine 4.5 and CentOS 7.2
9 years ago
Eric Green
f5c7ff10d0
Make rtpengine.spec more compatible with el7
9 years ago
Sergey Lavrov
cf39d07d73
fix typo and error in rtpengine.init
...
fix typo and error:
./rtpengine.init: line 111: syntax error in conditional expression
./rtpengine.init: line 111: syntax error near `-a'
./rtpengine.init: line 111: ` if [[ -n "$REDIS" -a -n "$REDIS_DB" ]]'
10 years ago
Richard Fuchs
3f1ae98379
unify -r/-R and -w/-W options into single options
...
Change-Id: I14672466cc2d9f0024d99d41dd63ec15aecbb58a
10 years ago
Joseph Frazier
2877f76222
Add hiredis-devel to daemon BuildRequires
10 years ago
Joseph Frazier
8fbb0d3541
Add hiredis-devel to daemon deps in README.el.md
10 years ago
Camille Oudot
6f6a70392d
add option to set the group owning /proc/rtpengine
10 years ago
Camille Oudot
5a8f5c3ab0
add possibility to choose rtpengine process user
...
use RE_USER parameter of el/rtpengine.sysconfig
10 years ago
Damian Ivereigh
76bebd5031
Put back the ipv6 tables entries (without the IF wrapper).
10 years ago
Damian Ivereigh
198b0c976f
Removed all the IP6 options
10 years ago
Damian Ivereigh
57e25ea45a
Added back in volga629's changes to allow multiple interfaces - also
...
duplicated the same for IPv6
10 years ago
Damian Ivereigh
0390782e22
Now works with firewalld - creates a permanent chain called INPUT_prefilter
...
which is before the conntrack stuff in the INPUT tables. We then create
our temporary rtpengine chain from that.
Also brought in some of the IPv6 stuff from the standard Centos init script
10 years ago
Frederic-Philippe Metz
c444c05a5f
Implemented MAX_SESSIONS limit or calls.
...
related to RTPENGINE-20
11 years ago
Frederic-Philippe Metz
89bbaf12e3
Merge branch 'dev-fmetz'
...
Conflicts:
daemon/Makefile
daemon/call.c
daemon/log.c
daemon/main.c
kernel-module/xt_RTPENGINE.c
11 years ago
Frederic-Philippe Metz
070212ec3a
Added RTCP parsing and option to log that information
11 years ago
Frederic-Philippe Metz
fb30ef8ccd
Merge remote-tracking branch 'upstream/master'
11 years ago
Peter Lemenkov
3b27031828
Explicitly set rights on dkms.conf as 644
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
9a12b4915a
Don't specify access rights for _usrsrc dir
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
a6ab5b5ebc
Restrict access to a working directory
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
e71a7e15d8
Consistently use rtpengine name everywhere
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
d25b697f6a
Check for username,group before creating
...
Just a cosmetic actually. Earlier we created user,group anyway and
suppress error message if user or group already exists.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
882731b814
Remove double slash
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
234b45441a
Use macro instead of /etc/rc.d/init.d
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
9890371a89
Remove no longer required section
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago
Peter Lemenkov
8d56ed5067
Typo fix in Source0 url
...
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
11 years ago