J
J
Junior0072017-10-28 07:45:38
ubuntu
Junior007, 2017-10-28 07:45:38

How to run a daemon on Ubuntu Server?

There is a VPS, I uploaded a program there that should work all the time.
I connect via PuTTY, I run the program through the terminal window - it works.
I close the window - it turns off (no more changes are written to the database)
How to run the program so that it works regardless of the running terminal on the remote PC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2017-10-28
@Junior007

1) write a service for systemd
2) use tmux or screen ( https://habrahabr.ru/post/126996/ )
3) nohup ./script_name & (the output will go to nohup.out file)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question