Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. cat << EOF |sudo tee -a /lib/systemd/system/rocketchat.service
  2. [Unit]
  3. Description=The Rocket.Chat server
  4. After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
  5. [Service]
  6. ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
  7. StandardOutput=syslog
  8. StandardError=syslog
  9. SyslogIdentifier=rocketchat
  10. User=rocketchat
  11. Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://localhost:3000/ PORT=3000
  12. [Install]
  13. WantedBy=multi-user.target
  14. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement