Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thumbor service can run as multiple processes using upstart
- Loading branch information
Showing
4 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
description "Thumbor image manipulation service" | |||
author "Wichert Akkerman <wichert@wiggy.net>" | |||
|
|||
stop on stopped thumbor | |||
|
|||
respawn | |||
respawn limit 5 10 | |||
umask 022 | |||
|
|||
setuid thumbor | |||
setgid thumbor | |||
|
|||
env DAEMON=/usr/bin/thumbor | |||
|
|||
env conffile=/etc/thumbor.conf | |||
env keyfile=/etc/thumbor.key | |||
env ip=0.0.0.0 | |||
|
|||
chdir /var/lib/thumbor | |||
|
|||
instance $p | |||
|
|||
exec $DAEMON -c "${conffile}" -i "${ip}" -k "${keyfile}" -p "${p}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters