C
C
che_aa2020-09-16 16:15:30
Python
che_aa, 2020-09-16 16:15:30

Analogue of systemd on hosting?

I used to autorun the script through systemd, but unfortunately it can only be used through root. What is the analogue, or what is the cron error?
@reboot python3 /var/main.py
Nothing happens, well, it appears in crontab, but the script still does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2020-09-16
@pfg21

whom ?? sistemd or your prog ??
if you need to run the program from root, then you set the appropriate parameters in the system cmistemd.script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question