broody
broody

Reputation: 707

Linux startup script instead init.d

newbie question... how can I get my script init script to start when linux boots. Can I just drop a script into the /etc/init.d directory and make manual links to rcX.d?

Thanks

Upvotes: 2

Views: 543

Answers (2)

Roman Newaza
Roman Newaza

Reputation: 11700

Yes, you are right. You can read on this: http://www.cyberciti.biz/tips/linux-how-to-run-a-command-when-boots-up.html

Upvotes: 1

Dirk is no longer here
Dirk is no longer here

Reputation: 368539

The file /etc/rc.local is a good candidate for local jobs, and it avoids some of the complexity of using /etc/init.d/ and similar directories.

Just add a line to /etc/rc.local to launch your job.

Upvotes: 1

Related Questions