forked from bitcoinvsalts/node-binance-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnbt.service
38 lines (35 loc) · 748 Bytes
/
nbt.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Place this file at /lib/systemd/system/nbt.service
#
# Use sudo for all commands if you're not root at the moment.
# After it's saved there AND "WorkingDirectory" AND "User" are set correctly then run:
#
# systemctl daemon-reload
#
# Enable auto-start on system boot:
# systemctl enable
#
# Start NBT service:
# systemctl start
#
#
# IF NEEDED LATER:
# Stop NBT service:
# systemctl stop
#
# Restart NBT service:
# systemctl restart
#
# Monitoring output of NBT:
# journalctl -n500 -u nbt -f
[Unit]
Description = NBT
After = network.target
[Service]
Type=simple
User=games
Restart=always
WorkingDirectory=/path/to/node-binance-trader
ExecStart=/usr/local/bin/npm run trader
ExecStop=/usr/bin/pkill -f npm
[Install]
WantedBy = multi-user.target