Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36624002
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
View Options
diff --git a/scripts/init/init-aphlict.php b/scripts/init/init-aphlict.php
new file mode 100644
index 000000000..e2029a0d2
--- /dev/null
+++ b/scripts/init/init-aphlict.php
@@ -0,0 +1,10 @@
+<?php
+
+require_once dirname(__FILE__).'/lib.php';
+
+init_phabricator_script(
+ array(
+ // NOTE: We allow aphlict to start with no database, because it's
+ // reasonable to isolate the notification server from other hosts.
+ 'config.optional' => true,
+ ));
diff --git a/support/aphlict/server/aphlict_launcher.php b/support/aphlict/server/aphlict_launcher.php
index f6173fbd6..af644c58a 100755
--- a/support/aphlict/server/aphlict_launcher.php
+++ b/support/aphlict/server/aphlict_launcher.php
@@ -1,23 +1,23 @@
#!/usr/bin/env php
<?php
$root = dirname(dirname(dirname(dirname(__FILE__))));
-require_once $root.'/scripts/__init_script__.php';
+require_once $root.'/scripts/init/init-aphlict.php';
PhabricatorAphlictManagementWorkflow::requireExtensions();
$args = new PhutilArgumentParser($argv);
$args->setTagline(pht('manage Aphlict notification server'));
$args->setSynopsis(<<<EOSYNOPSIS
**aphlict** __command__ [__options__]
Manage the Aphlict server.
EOSYNOPSIS
);
$args->parseStandardArguments();
$workflows = id(new PhutilClassMapQuery())
->setAncestorClass('PhabricatorAphlictManagementWorkflow')
->execute();
$workflows[] = new PhutilHelpArgumentWorkflow();
$args->parseWorkflows($workflows);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Feb 26, 7:06 PM (22 h, 7 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/c3/8670d7e89b82d6919315377ae189
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment