How to change installation script from Ubuntu to Debian.

Hi, I want to install Countly server on Debian. But the script file is not the same with Ubuntu. The Unbuntu installation script:

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

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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/, 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"



(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




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


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