Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
1b0683b3
Commit
1b0683b3
authored
10 years ago
by
Marius Cramer
Browse files
Options
Downloads
Patches
Plain Diff
Improved starter script for hhvm instances
parent
1c6da350
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!88
Fix Update errors
,
!86
HHVM Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/conf/hhvm_starter.master
+35
-25
35 additions, 25 deletions
server/conf/hhvm_starter.master
with
35 additions
and
25 deletions
server/conf/hhvm_starter.master
+
35
−
25
View file @
1b0683b3
...
...
@@ -17,13 +17,23 @@ NAME=hhvm
do_start
()
{
if
[
!
-d
/var/run/hhvm
]
;
then
mkdir
-p
-m0777
/var/run/hhvm
else
chmod
777 /var/run/hhvm
fi
mkdir
-p
-m0777
/var/run/hhvm
else
chmod
777 /var/run/hhvm
fi
if
[[
-e
"/var/run/hhvm/hhvm_{SYSTEM_USER}.pid"
]]
;
then
kill
-0
`
cat
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid
`
>
/dev/null 2>&1
;
case
"
$?
"
in
0
)
return
1
;;
esac
fi
umask
017
sudo
-u
{
SYSTEM_USER
}
touch
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid
/usr/bin/hhvm
--mode
daemon
-vServer
.Type
=
fastcgi
--user
{
SYSTEM_USER
}
-vServer
.FileSocket
=
/var/run/hhvm/hhvm.
{
SYSTEM_USER
}
.sock
-vLog
.Level
=
Warning
-vLog
.UseLogFile
=
false
-vRepo
.Central.Path
=
/var/run/hhvm/hhvm.
{
SYSTEM_USER
}
.hhbc
-vPidFile
=
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid &
echo
$!
>
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid
sudo
-u
{
SYSTEM_USER
}
touch
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid
/usr/bin/hhvm
--mode
daemon
-vServer
.Type
=
fastcgi
--user
{
SYSTEM_USER
}
-vServer
.FileSocket
=
/var/run/hhvm/hhvm.
{
SYSTEM_USER
}
.sock
-vLog
.Level
=
Warning
-vLog
.UseLogFile
=
false
-vRepo
.Central.Path
=
/var/run/hhvm/hhvm.
{
SYSTEM_USER
}
.hhbc
-vPidFile
=
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid &
echo
$!
>
/var/run/hhvm/hhvm_
{
SYSTEM_USER
}
.pid
}
do_stop
()
...
...
@@ -35,25 +45,25 @@ do_stop()
}
case
"
$1
"
in
start
)
do_start
;;
stop
)
do_stop
;;
restart|force-reload
)
do_stop
case
"
$?
"
in
0|1
)
do_start
;;
*
)
;;
esac
;;
*
)
exit
3
;;
start
)
do_start
;;
stop
)
do_stop
;;
restart|force-reload
)
do_stop
case
"
$?
"
in
0|1
)
do_start
;;
*
)
;;
esac
;;
*
)
exit
3
;;
esac
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment