Skip to content

Instantly share code, notes, and snippets.

@angelo-chan
angelo-chan / kong init script
Last active June 12, 2019 07:31
Kong System-V
#! /bin/sh
### BEGIN INIT INFO
# Provides: kong
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: kong - Api gateway
#!/bin/sh
set -e
set -x
# This is an example script for updating Phabricator, similar to the one used to
# update <https://secure.phabricator.com/>. It might not work perfectly on your
# system, but hopefully it should be easy to adapt. This script is not intended
# to work without modifications.
sudo /home/ubuntu/phabricator/bin/phd start
sudo /usr/sbin/sshd -f /etc/ssh/sshd_config.phabricator
Phabricator Ubuntu Installation Guide
-------------------------------------
This is a supplement to the official [Phabricator Installation Guide](https://secure.phabricator.com/book/phabricator/article/installation_guide/), because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.
#### Install bonus packages:
# apt-get install python-pygments sendmail imagemagick
#### Create necessary users and add phd-user to sudoers: