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
First, we’ll need to download the supervisor package without installing it and then extract it:
apt-get download supervisor
ar x supervisor*.deb
tar zvf data.tar.xz
./etc/init.d/supervisor and replace this line:
DAEMON_OPTS="-c /etc/supervisor/supervisord.conf $DAEMON_OPTS"
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
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