Report this

What is the reason for this report?

How to change installation script from Ubuntu to Debian.

Posted on December 14, 2014

Hi, I want to install Countly server on Debian. But the script file is not the same with Ubuntu. The Unbuntu installation script: https://github.com/Countly/countly-server/blob/master/bin/countly.install.sh

I can install all, but I don’w know how to start countly api and dashboard? What is the same with below command in Debian? start countly-supervisor

Thank you. TruongPS



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

countly-supervisor is an Upstart service. Upstart is an init system that is used in Ubuntu systems, while Debian uses the SysV init system.

Luckily, the countly-supervisor service isn’t that complex – it just starts supervisor with a custom config file, so we can copy supervisor’s init.d file and replace the path to the config file with the one that countly uses, which is located in config directory in the same directory as the installer. E.g., if the installer’s path is /var/countly-supervisor/bin/countly.install.sh, the path to the config file would be /var/countly-supervisor/bin/config/supervisord.conf.

First, we’ll need to download the supervisor package without installing it and then extract it:

mkdir /tmp/countly-supervisor
cd /tmp/countly-supervisor
apt-get download supervisor
ar x supervisor*.deb
tar zvf data.tar.xz

Then, edit ./etc/init.d/supervisor and replace this line:

DAEMON_OPTS="-c /etc/supervisor/supervisord.conf $DAEMON_OPTS"

with

DAEMON_OPTS="-c PATH-HERE $DAEMON_OPTS"

(Make sure you replace PATH-HERE with the actual path)

To prevent any conflicts with supervisor itself, we’ll use a different PID file. Replace

NAME=supervisord

with

NAME=countly-supervisord

The PIDFILE variable uses the NAME variable, so changing NAME is enough:

PIDFILE=/var/run/$NAME.pid

Finally, copy the service file and try starting it:

sudo cp /tmp/countly-supervisor/etc/init.d/supervisor /etc/init.d/countly-supervisor
sudo service countly-supervisor start

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.