- [Unit]
- Description=The Rocket.Chat server
- After=network.target remote-fs.target nss-lookup.target apache2.service mongod.service
- [Service]
- ExecStart=/usr/local/bin/node /usr/local/bin/Rocket.Chat/main.js
- StandardOutput=syslog
- StandardError=syslog
- SyslogIdentifier=rocketchat
- User=rocketchat
- Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=https://{{ rocketchat_domain }}/ PORT={{ rocketchat_internal_port }}
- [Install]
- WantedBy=multi-user.target
|