Changes

From SME Server
Jump to navigationJump to search
46 bytes added ,  12:06, 21 April 2016
Line 139: Line 139:  
  npm install -g forever-service
 
  npm install -g forever-service
 
Since SME Server has put it's name in /etc/system-release, the forever utility will not be able to detect the main distribution name (e.g. CentOS) and will exit with an error. To add 'SME Server' to the list of recognised distributions so that the forever-service tool will run properly, is to execute the following command:
 
Since SME Server has put it's name in /etc/system-release, the forever utility will not be able to detect the main distribution name (e.g. CentOS) and will exit with an error. To add 'SME Server' to the list of recognised distributions so that the forever-service tool will run properly, is to execute the following command:
  sed.... TBA (/opt/rh/nodejs010/root/usr/lib/node_modules/forever-service/templates/sysvinit/installer.js)
+
  sed -i -e 's/(Oracle Linux)/(Oracle Linux)|(SME Server)/' \
 +
/opt/rh/nodejs010/root/usr/lib/node_modules/forever-service/templates/sysvinit/installer.js
 
and then generate the init script 'rocketchat' that will automatically be placed into /etc/rc.d/init.d:
 
and then generate the init script 'rocketchat' that will automatically be placed into /etc/rc.d/init.d:
 
  cd /opt/Rocket.Chat
 
  cd /opt/Rocket.Chat

Navigation menu