Dike Jude
Dike Jude

Reputation: 199

How do I make a Bash script run continously, also end it when I want to?

I have a Bash script that creates a private Geth node named "startnode.sh".

I want to be able to run this script on a server and exit that server without any problem.

Upvotes: 0

Views: 43

Answers (2)

TheOrganist24
TheOrganist24

Reputation: 89

Alternatively, set up a systemd .service file and have it run as a daemon https://wiki.archlinux.org/index.php/Systemd

Upvotes: 0

Mateusz Piotrowski
Mateusz Piotrowski

Reputation: 9127

You are looking for nohup(1).

It is a utility which let's you detach a process from your current terminal session.

Here's a link to a manual of a FreeBSD nohup(1).

Upvotes: 3

Related Questions