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
0a624f87
Commit
0a624f87
authored
Sep 22, 2017
by
Daniel van Dorp
Committed by
GitHub
Sep 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1884 from timothywlewis/fix-pid-error-in-linux-sysvinit
Fix pid error in linux sysvinit
parents
93bcca0c
fea8f37f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dist/init/linux-sysvinit/caddy
dist/init/linux-sysvinit/caddy
+2
-1
No files found.
dist/init/linux-sysvinit/caddy
View file @
0a624f87
...
...
@@ -20,7 +20,7 @@ DAEMONUSER=www-data
PIDFILE
=
/var/run/
$NAME
.pid
LOGFILE
=
/var/log/
$NAME
.log
CONFIGFILE
=
/etc/caddy/Caddyfile
DAEMONOPTS
=
"-agree=true -
pidfile=
$PIDFILE
-
log=
$LOGFILE
-conf=
$CONFIGFILE
"
DAEMONOPTS
=
"-agree=true -log=
$LOGFILE
-conf=
$CONFIGFILE
"
USERBIND
=
"setcap cap_net_bind_service=+ep"
STOP_SCHEDULE
=
"
${
STOP_SCHEDULE
:-
QUIT
/5/TERM/5/KILL/5
}
"
...
...
@@ -36,6 +36,7 @@ ulimit -n 8192
start
()
{
$USERBIND
$DAEMON
touch
$LOGFILE
&&
chown
$DAEMONUSER
$LOGFILE
start-stop-daemon
--start
--quiet
--make-pidfile
--pidfile
$PIDFILE
\
--background
--chuid
$DAEMONUSER
--oknodo
--exec
$DAEMON
--
$DAEMONOPTS
}
...
...
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