2016-04-29 16:32:48 +02:00
|
|
|
[Unit]
|
2017-07-21 10:54:41 +02:00
|
|
|
Description=rocketchat
|
2016-04-29 16:32:48 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2017-07-19 12:49:06 +02:00
|
|
|
Type=simple
|
2017-07-21 10:55:45 +02:00
|
|
|
WorkingDirectory=/var/lib/rocketchat
|
2017-07-21 10:54:41 +02:00
|
|
|
User=#USER#
|
2017-07-19 12:49:06 +02:00
|
|
|
ExecStart=/usr/local/bin/node main.js
|
|
|
|
Restart=always
|
|
|
|
SyslogIdentifier=Rocket.Chat
|
|
|
|
Environment="BIND_IP=127.0.0.1"
|
2017-07-21 10:54:41 +02:00
|
|
|
Environment="ROOT_URL=https://#ROOTURL##LOCATION#"
|
2017-07-21 11:56:40 +02:00
|
|
|
Environment="PORT=#PORT#"
|
2016-04-29 16:32:48 +02:00
|
|
|
Environment="MONGO_URL=mongodb://localhost:27017/rocketchat"
|
|
|
|
|
|
|
|
[Install]
|
2017-07-19 12:49:06 +02:00
|
|
|
WantedBy=multi-user.target
|