A
A
Andrey Belyaev2020-11-10 23:09:36
JavaScript
Andrey Belyaev, 2020-11-10 23:09:36

How to make a js bot start automatically with the system?

I need the script to automatically run at system startup and not turn off while the system is running.
the script is located here /home/user/bot/bot.js
I need it to execute the screen node /home/user/bot/bot.js command once
and so that every system startup

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zohan1993, 2020-11-10
@zohan1993

1. crontab (@reboot ...)
2. systemd
3. rc.local
ubuntu run command after startup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question