Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889882
launch_daemon.php
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
640 B
Referenced Files
None
Subscribers
None
launch_daemon.php
View Options
#!/usr/bin/env php
<?php
// NOTE: This is substantially the same as the libphutil/ "launch_daemon.php"
// script, except it loads the Phabricator environment and adds some Phabricator
// specific flags.
if
(
function_exists
(
'pcntl_async_signals'
)
)
{
pcntl_async_signals
(
true
)
;
}
else
{
declare
(
ticks
=
1
)
;
}
$root
=
dirname
(
dirname
(
dirname
(
__FILE__
)
)
)
;
require_once
$root
.
'/scripts/__init_script__.php'
;
$overseer
=
new
PhutilDaemonOverseer
(
$argv
)
;
$bootloader
=
PhutilBootloader
::
getInstance
(
)
;
foreach
(
$bootloader
->
getAllLibraries
(
)
as
$library
)
{
$overseer
->
addLibrary
(
phutil_get_library_root
(
$library
)
)
;
}
$overseer
->
run
(
)
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 12:47 (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1109149
Default Alt Text
launch_daemon.php (640 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment