K
K
kupurim2018-03-20 17:24:59
linux
kupurim, 2018-03-20 17:24:59

How to restart phantomjs when it is disabled?

Hello. There is a site parser that runs on phantomjs, runs through PHP7. It constantly works and it happens that it just turns off, and you have to start it manually by typing the command in the terminal, which is located on the remote desktop (NVC, it is configured and working on the hosting).
The command to run is this: The
phantomjs --webdriver=4444
question is, how can it be automatically registered when the phantom stops working?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2018-03-20
@pfg21

write a systemd task :), in which to prescribe a restart of the task when the binary crashes ??

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question