N
N
nezzard2016-12-10 18:13:07
linux
nezzard, 2016-12-10 18:13:07

How to run sh script on centos boot?

Good evening, there is a socket.sh file, you need to run it on boot, I write
sh socket.sh in rc.local (it's at the root), nothing starts, I've already tried a bunch of options

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ipc_ngs, 2016-12-10
@ipc_ngs

Specify the full path to the script file:
/bin/sh /socket.sh

K
Kirill, 2016-12-10
@GoooodBoy

Through cron add and specify @reboot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question