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.
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/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:
Then, edit
./etc/init.d/supervisor
and replace this line:with
(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
with
The PIDFILE variable uses the NAME variable, so changing NAME is enough:
Finally, copy the service file and try starting it:
This comment has been deleted