I
I
Ilya2017-05-18 15:59:03
linux
Ilya, 2017-05-18 15:59:03

Why doesn't the autorun of the program through rc.local work correctly when loading armbian?

I'm trying to organize the autostart of the program when starting Armbian on Orange Pi Lite via rc.local.
A simple program, dust_s, written in C, which polls the sensor via UART and writes information to a file, if run through the console, it works fine.
When writing the line "sudo /*full_path*/dust_s &" to rc.local, the program seems to run, but for some reason it does not write to the file. With what it can be connected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lxfr, 2017-05-18
@lxfr

Maybe it's worth it?
sudo /*fullpath*/dust_s >/dev/null 2>&1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question