Improve unit file and instructions
This commit is contained in:
parent
71e425d39f
commit
0e5159fdfc
@ -10,6 +10,7 @@ Back and forth it goes!
|
|||||||
git clone https://source.netsyms.com/Netsyms/matrix-bridge-voxtelesys /opt/matrix-bridge-voxtelesys
|
git clone https://source.netsyms.com/Netsyms/matrix-bridge-voxtelesys /opt/matrix-bridge-voxtelesys
|
||||||
cd /opt/matrix-bridge-voxtelesys
|
cd /opt/matrix-bridge-voxtelesys
|
||||||
npm install
|
npm install
|
||||||
|
adduser --system --no-create-home matrix-bridge-voxtelesys
|
||||||
cp matrix-bridge-voxtelesys.service /etc/systemd/system
|
cp matrix-bridge-voxtelesys.service /etc/systemd/system
|
||||||
systemctl enable matrix-bridge-voxtelesys
|
systemctl enable matrix-bridge-voxtelesys
|
||||||
systemctl start matrix-bridge-voxtelesys
|
systemctl start matrix-bridge-voxtelesys
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=matrix-bridge-voxtelesys
|
Description=matrix-bridge-voxtelesys
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
User=matrix-bridge-voxtelesys
|
User=matrix-bridge-voxtelesys
|
||||||
Group=users
|
Group=users
|
||||||
ExecStart=/usr/bin/node /opt/matrix-bridge-voxtelesys/main.js
|
ExecStart=/usr/bin/node /opt/matrix-bridge-voxtelesys/main.js
|
||||||
ExecStop=/bin/kill -9 $MAINPID
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=15
|
RestartSec=15
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user