diff options
author | Thorvald Natvig <thorvald@debian.localdomain> | 2009-03-04 05:24:41 +0300 |
---|---|---|
committer | Thorvald Natvig <thorvald@debian.localdomain> | 2009-03-04 05:24:41 +0300 |
commit | 467cd160c4d591579d9d48b1001e2a19b63801d7 (patch) | |
tree | f9cf30c3bdf66de7fdae3f995bf24f12b13e3944 /scripts/murmur.init | |
parent | 792ca1f28139f4b6e5f87e579fce1f41e9f84905 (diff) |
Update release script
Diffstat (limited to 'scripts/murmur.init')
-rwxr-xr-x | scripts/murmur.init | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/murmur.init b/scripts/murmur.init index 3dd75a52a..5c15a3c3a 100755 --- a/scripts/murmur.init +++ b/scripts/murmur.init @@ -26,6 +26,8 @@ INIFILE=/etc/mumble-server.ini DAEMON_OPTS="-ini $INIFILE" MURMUR_DAEMON_START=0 MURMUR_USE_CAPABILITIES=0 +MURMUR_LIMIT_NOFILE=0 +MURMUR_LIMIT_RTPRIO=0 # Include murmur defaults if available if [ -f /etc/default/$NAME ] ; then @@ -35,6 +37,13 @@ fi . /lib/init/vars.sh . /lib/lsb/init-functions +if [ "$MURMUR_LIMIT_NOFILE" -gt 0 ] ; then + ulimit -n $MURMUR_LIMIT_NOFILE +fi +if [ "$MURMUR_LIMIT_RTPRIO" -gt 0 ]; then + ulimit -r 1 +fi + case "$1" in start) if [ "$MURMUR_DAEMON_START" != "1" ] ; then |