Skip to content

Commit

Permalink
Add ulimit to service files
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Apr 23, 2016
1 parent 43334ef commit 05f5653
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/init.d.sysvinit/pritunl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ start() {
echo 'Service already running' >&2
return 1
fi
ulimit -n 50000
echo 'Starting service...' >&2
pritunl start --daemon --pidfile $PIDFILE > /dev/null
echo 'Service started' >&2
Expand Down
1 change: 1 addition & 0 deletions data/init/pritunl.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
description "Pritunl Daemon"
limit nofile 50000 50000

start on runlevel [2345]
stop on runlevel [!2345]
Expand Down
1 change: 1 addition & 0 deletions data/systemd/pritunl.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Pritunl Daemon

[Service]
LimitNOFILE=50000
ExecStart=%PREFIX%/bin/pritunl start

[Install]
Expand Down

0 comments on commit 05f5653

Please sign in to comment.