This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I set an executable program start automatically in root when starting the linux system?

Part Number: AM5728


Tool/software: Linux

I compiled an executable program in C/C++,and I want to set the program start automatically in root when I start the linux system.But I found that login operation is after automatical starting program.How can I set the program start automatically in root account.Could systemd mechnism achieve it?

Thanks for any help.