mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 14:45:50 +03:00
[GH-ISSUE #145] Solution for those who have trouble starting peerflix-server with linux #338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leopedro95 on GitHub (May 23, 2018).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/145
I made a small script that can be useful for this function with the
pgrepcommand.Remember that the script is dependent on
cron.Attention: The script can be useful if you use server only for peerflix-server. Because it checks to see if
node.jsis running. If you have other processes withnode.jscan of the problem. But who wants to improve the script, feel free.Let's put in the folder "/root":
nano checar-peerflixPaste the code:
save and put in cron to run every 1 minute, use the command
crontab -e:* * * * * sh /root/checar-peerflixSave again.
Done!
The script will check every 1 minute whether the
node.jsis running or not. If you will not try to connect peerflix-server.Sorry for my English, because I did a free translation on google translator, because I speak Brazilian Portuguese.