From 9cd2b9f38587e0aec8c193e8d83eeb575e0fab5e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 23 Oct 2014 15:34:26 -0700 Subject: [PATCH] files/init.d/thumbor: Change the default port to 8888 Avoid: Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/thumbor", line 9, in load_entry_point('thumbor==4.5.4', 'console_scripts', 'thumbor')() File "/usr/lib64/python2.7/site-packages/thumbor/server.py", line 87, in main server.bind(context.server.port, context.server.ip) File "/usr/lib64/python2.7/site-packages/tornado/tcpserver.py", line 162, in bind backlog=backlog) File "/usr/lib64/python2.7/site-packages/tornado/netutil.py", line 90, in bind_sockets sock.bind(sockaddr) File "/usr/lib64/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 13] Permission denied because port 80 is a privledged port, and it's not worth using an additional service like authbind [1] to give us the capability to bind to it. 8888 is unprivileged, and it's Thumbor's default [2] [1]: http://en.wikipedia.org/wiki/Authbind [2]: https://github.com/thumbor/thumbor/wiki/Running#-p-or---port --- files/init.d/thumbor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/init.d/thumbor b/files/init.d/thumbor index 7680a1a..77b848e 100755 --- a/files/init.d/thumbor +++ b/files/init.d/thumbor @@ -5,7 +5,7 @@ PC_GROUP="${PC_GROUP:-thumbor}" CONFIG="${CONFIG:-/etc/thumbor/${SVCNAME}.conf}" HOME="/var/lib/thumbor" HOST="${HOST:-0.0.0.0}" -PORT="${PORT:-80}" +PORT="${PORT:-8888}" KEYFILE="${KEYFILE:-}" command="/usr/bin/thumbor" pidfile="/run/${SVCNAME}.pid" -- 2.26.2