summarylogtreecommitdiffstats
path: root/rocketchat.service
blob: 64bdd560d822aaa93f2211d3715ece68a793161a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=RocketChat server

[Service]
ExecStartPre=/bin/sh -c '/usr/bin/node --version > /usr/share/rocketchat-server/.node_version.txt'
ExecStart=/usr/bin/node /usr/share/rocketchat-server/main.js
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Group=rocketchat
EnvironmentFile=/etc/rocketchat/rocketchat-server.conf

[Install]
WantedBy=multi-user.target