Update '4.restapi client.md'
This commit is contained in:
parent
2b4f300555
commit
f8e022cb98
@ -31,5 +31,28 @@ npm start
|
||||
|
||||
## Auto start at boot
|
||||
|
||||
```sh
|
||||
`/lib/systemd/system/restfox.service`
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=RestFox REST POI CLient
|
||||
Documentation=https://github.com/flawiddsouza/Restfox
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=NODE_PORT=4004
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/usr/bin/node /root/Restfox/packages/web-standalone/app.js
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
```sh
|
||||
systemctl daemon-reload
|
||||
systemctl start restfox
|
||||
systemctl status restfox
|
||||
systemctl enable restfox
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user