Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
0548b977
Commit
0548b977
authored
Oct 13, 2017
by
Eugene Dementiev
Committed by
Matt Holt
Oct 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: Fix upstart script for Centos6 (and Amazon Linux) (#1914)
parent
99625ae3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
dist/init/linux-upstart/caddy.conf.centos-6
dist/init/linux-upstart/caddy.conf.centos-6
+3
-10
No files found.
dist/init/linux-upstart/caddy.conf.centos-6
View file @
0548b977
...
@@ -3,19 +3,11 @@ description "Caddy HTTP/2 web server"
...
@@ -3,19 +3,11 @@ description "Caddy HTTP/2 web server"
start on runlevel [2345]
start on runlevel [2345]
stop on runlevel [016]
stop on runlevel [016]
# centos 6 upstart version does not support console
console output
console log
# centos 6 upstart version does not support setuid/setgid
setuid www-data
setgid www-data
respawn
respawn
respawn limit 10 5
respawn limit 10 5
# centos 6 upstart version does not support reload
reload signal SIGUSR1
# Let's Encrypt certificates will be written to this directory.
# Let's Encrypt certificates will be written to this directory.
env CADDYPATH=/etc/ssl/caddy
env CADDYPATH=/etc/ssl/caddy
...
@@ -24,5 +16,6 @@ limit nofile 1048576 1048576
...
@@ -24,5 +16,6 @@ limit nofile 1048576 1048576
script
script
cd /etc/ssl/caddy
cd /etc/ssl/caddy
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
chown www-data:www-data $rootdir
exec sudo -u www-data /usr/local/bin/caddy -agree -log=/var/log/caddy.log -conf=/etc/caddy/Caddyfile -root=$rootdir
end script
end script
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment